an effective way to pull all formulas down to last row in sheet?

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,194
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi everyone,

i'm looking for a Macro that when run will pull all formulas in the sheet (Say Column A to Z) down to the last row.

so full explanation,
data is add to the sheet from several places,
lets say last time data was added formulas where pulled down to rows 20, now i add 25 more rows, i'd likw a macro that can pull each column with a formula in it down to last row

My headers are in row 10 so first row with formulas is 11
if i was writing in English i would say this

find last row of column A

for each column in A to Z if row 11 = a formula the pull formula down to last row.

please help if you can

Thanks

Tony
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Why not use the Excel Table tool? Formulas will extend automatically.No need for extra VBA.
Select the range - Table - Insert - Follow the wizard
 
Upvote 0
Try something like the below, although you might want to turn off calculations and screenupdating while the code is running.
VBA Code:
    Dim LastRow As Long, i As Long
    LastRow = Cells(Rows.Count, "A").End(xlUp).Row
    For i = 1 To 26
        If Cells(11, i).HasFormula = True Then
            Cells(11, i).Resize(LastRow - 10).FillDown
        End If
    Next
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,453
Members
448,967
Latest member
grijken

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