Barry Katcher
Well-known Member
- Joined
- Feb 25, 2002
- Messages
- 4,053
Hello, peeps.
How do I get the following macro (that refreshes a pivot table) to run when I select the worksheet tab that the Pivot Table is on?
Sub RefreshPT()
'
' RefreshPT Macro
' Refresh Pivot Table
'
'
Range("E20").Select
ActiveSheet.PivotTables("PivotTable1").PivotCache.Refresh
End Sub
Tanks,
Barry
How do I get the following macro (that refreshes a pivot table) to run when I select the worksheet tab that the Pivot Table is on?
Sub RefreshPT()
'
' RefreshPT Macro
' Refresh Pivot Table
'
'
Range("E20").Select
ActiveSheet.PivotTables("PivotTable1").PivotCache.Refresh
End Sub
Tanks,
Barry