Macro to Extend table to 3 Extra Columns

squeakums

Well-known Member
Joined
May 15, 2007
Messages
823
Office Version
  1. 365
My Macro is creating 3 extra columns at the end of a table; but the table isn't auto populating like it normally does for some odd reason. I want to write into the macro to include these last 3 columns without having to tell the macro how many rows; because row counts will very with every run. My code is below. I don't want it to have extra blank rows because I have to tell it to use that row count.. Is there something I can write prior to this code to have it link to the table like it once did before?

ActiveCell.FormulaR1C1 = "calc"
Range("AQ1").Select
ActiveCell.FormulaR1C1 = "calc1"
Range("AR1").Select
ActiveCell.FormulaR1C1 = "calc2"
Range("Table_owssvr__3[[#Headers],[Management Override Rationale]]").Select
ActiveSheet.ListObjects("Table_owssvr__3").Resize Range("$A$1:$AR$10000")
Range("Table_owssvr__3[[#Headers],[Management Override Rationale]]").Select
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,214,929
Messages
6,122,317
Members
449,081
Latest member
tanurai

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