Excel VBA Dynamic Autofill

mathsbeauty

Board Regular
Joined
Apr 23, 2011
Messages
89
The Column has entries as shown below.
AA
BB
CC

I want to auto fill entries like all cells in the column between AA and BB get auto filled by AA, all cells in the column between BB and CC get auto filled by BB and so on. This should continue till the end of last row. Any help will be appreciated.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Assuming that cells are in column A and"AA" is in A1 :
• Select column A
• Go to SpecialCells/Blanks
• Type =A1
• Press Ctrl+Enter
 
Upvote 0
This does not work. Probably you misunderstood. Please find attached solution. Also I prefer to have VBA Solution.
 

Attachments

  • 2020-02-18_191407.png
    2020-02-18_191407.png
    5.4 KB · Views: 10
  • expected.png
    expected.png
    17.4 KB · Views: 10
Upvote 0
Are your blank cells truly blank and not with formulas in them? (BTW I would use = and press the up arrow rather than =A1 as it is more generic).
We will worry about the VBA once we have sorted out why it isn't working manually.
 
Upvote 0
One more question: You have shown "CC" filled down from row 18 to row 23. How do we determine where the last value should be filled to? From what we can see, there is nothing else on the sheet that would indicate the final row.
 
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,595
Members
452,657
Latest member
giadungthienduyen

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