vba Selecting non-adjacent cells in active row for filldown

Ike Hunter

New Member
Joined
Dec 15, 2011
Messages
35
Is there a shorter way of writing VBA to select non-adjacent cells in an active row for the following...

Selecting first empty cell in column A and then selecting the adjacent cells that are in columns B, E, and G and then Filldown the existing formulas.

The following example works however it just seems there could be a better way to write the VBA especially if there are 15 to 20 non adjacent cells on the active row.

[A65000].Select
Selection.End(xlUp)(2, 2).Select
Selection.FillDown

[A65000].Select
Selection.End(xlUp)(2, 5).Select
Selection.FillDown

[A65000].Select
Selection.End(xlUp)(2, 7).Select
Selection.FillDown

Thanks in advance.
smile.gif
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,214,958
Messages
6,122,475
Members
449,087
Latest member
RExcelSearch

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