is it possible?

abrahamperl1987

New Member
Joined
Dec 17, 2020
Messages
6
Office Version
  1. 365
Platform
  1. Windows
hi I have a interesting excel question I've been trying to do it for a while
but I wasn't successful maybe someone here could help me.

when I type 1 in cell A1 I want three things to happen
1. 12072020 should appear in cell A1
2. 122020 should appear in cell B1
3. 01042021 should appear in cell C1
is it possible?
thank you.
 
Rich (BB code):
        Target = "12072020"
        Target.Offset(0, 1) = "122020"
        Target.Offset(0, 2) = "01042021"
For those who might be interested, these three red highlighted lines of code from Joe4's code can be replaced by this single line of code...

Target.Resize(, 3) = Array("12072020", "122020", "01042021")
 
Last edited:
Upvote 0

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,215,008
Messages
6,122,672
Members
449,091
Latest member
peppernaut

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top