Need marco to extend table range to include new data in first column

Conibear

New Member
Joined
Apr 12, 2019
Messages
2
Novice in need of guidance!

I run a macro that copies all cells with unique text from a separate work sheet and pastes them in the first column of a table. As this table has a load of formulas worked out using this column as a reference, I want the table to automatically extend to include the new records. If I record the macro and drag manually I get the below:



Sub Macro3()
'
' Macro3 Macro
'


'
ActiveSheet.ListObjects("Table4").Resize Range("$C$3:$AF$3875")
Range("AD3859").Select

End Sub




So I essentially just want to change the Resize Range the the last row with any data in. I thought &lstrow would help but no joy...

Or, is there a more efficient way of going about this?

Any help really appreciated.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,223,896
Messages
6,175,259
Members
452,626
Latest member
huntinghunter

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