lemondifficult
New Member
- Joined
- Mar 19, 2014
- Messages
- 40
Hi,
Im trying to use the following VBA code to auto-refresh some pivot tables:
Private Sub Worksheet_Activate()
Dim pt As PivotTable
For Each pt In Me.PivotTables
pt.RefreshTable
Next pt
End Sub
However, i want the code to be amended so that the pivot tables on the worksheet "Pivots", auto-refresh when the worksheet "At a glance" is activated.
Does anyone know if this is possible and how the code would need to be amended in order to do it?
Any responses are greatly appreciated.
Thanks in advance,
Mikey
Im trying to use the following VBA code to auto-refresh some pivot tables:
Private Sub Worksheet_Activate()
Dim pt As PivotTable
For Each pt In Me.PivotTables
pt.RefreshTable
Next pt
End Sub
However, i want the code to be amended so that the pivot tables on the worksheet "Pivots", auto-refresh when the worksheet "At a glance" is activated.
Does anyone know if this is possible and how the code would need to be amended in order to do it?
Any responses are greatly appreciated.
Thanks in advance,
Mikey