Hello,
The following macro refreshes the named pivot table when I go into the active worksheet:
Private Sub Worksheet_Activate()
ActiveSheet.PivotTables(“PivotTable1”).RefreshTable
End Sub
I now have multiple pivot tables on the active worksheet… how can I tweak the code to refresh ALL the pivot tables on this active worksheet. I tried the following, but it didn’t like it…
Private Sub Worksheet_Activate()
ActiveSheet.PivotTables(“PivotTable1”).RefreshTable
ActiveSheet.PivotTables(“PivotTable2”).RefreshTable
End Sub
Likewise, I tried having TWO macros, naming the 1st table in the 1st macro and the 2nd in the 2nd macro… it didn’t like that either.
I thought I could handle this one, but was obviously wrong…
As usual, I appreciate any suggestions!!
Thank you!
LJM