I am wondering how I can increase a selection range by 1 row each time the code is run but for it to always increase selection by 1.
What happens is I get new data which is pasted into a table and the pivot table is refreshed. Upon refresh, there are new entries in the pivot table. I would like to select a certain range of cells when new data is added and copy this selection to another page (but not all the new data as some of the data is unreliable)
Code so far is:
Sub A_Data_Refresh_Select ()
ActiveSheet.PivotTables("PivotTable2").PivotCache.Refresh
Range("B19:G509").Select
I know this just simply selects the range, but it was just done using a macro so I could edit it. Ideally I would like to select all the data apart from the last 2 or 3 rows each time. Maybe that is an easier way to think of it?
Thanks for the help.