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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
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: 9
  • expected.png
    expected.png
    17.4 KB · Views: 9
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,214,645
Messages
6,120,711
Members
448,984
Latest member
foxpro

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