Excel Table - FillDown formula from top row in respective column

Stefaniala

New Member
Joined
Nov 14, 2016
Messages
4
Hi there

In the Excel table from the attachment, starting from column EQ, I would like to have the VBA filldown the formula in row 6 of each column for the respective column. This is what I have so far:

Code:
[INDENT]Sub EnableFormulas()

Dim Lastrow As Long

Application.ScreenUpdating = False

Lastrow = Range("EQ" & Rows.Count).End(xlUp).Row
Worksheets("Master Data").Range("EQ6:EQ" & Lastrow).FillDown

Application.ScreenUpdating = True

End Sub
[/INDENT]

In a loop, it should always fetch the formula in row 6 and pull it down, e.g. fetch EQ6, then copy to the last row in that column EQ. I currently struggle with knowing how to make the range dynamic, so that when going to the next column, ER, the FillDown would fetch cell ER6 and fill it down.

Then in a second step, I need the marcro that hardcopies all these rows again.

Thanks for your help!
BR
Stefania
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Forum statistics

Threads
1,215,487
Messages
6,125,073
Members
449,205
Latest member
Healthydogs

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