PETRODATAjames
New Member
- Joined
- Aug 20, 2022
- Messages
- 21
- Office Version
- 365
- Platform
- Windows
I have a workbook with 5 worksheets
1.) Instructions
2.) Instructor Pay Data
3.) Instructor Summary - this is where the two pivot tables reside
4.) Instructor and Location Payrate
5.) Master Pay Rates
Can I have a VBA, that will automatically refresh the Pivot Table, just by clicking on that tab to open the worksheet? This is the worksheet code already on this sheet, just in case you need to know.
Private Sub Worksheet_Activate()
Application.Goto [A1], True
Me.UsedRange.Columns.AutoFit
End Sub
Thanks,
James E.
1.) Instructions
2.) Instructor Pay Data
3.) Instructor Summary - this is where the two pivot tables reside
4.) Instructor and Location Payrate
5.) Master Pay Rates
Can I have a VBA, that will automatically refresh the Pivot Table, just by clicking on that tab to open the worksheet? This is the worksheet code already on this sheet, just in case you need to know.
Private Sub Worksheet_Activate()
Application.Goto [A1], True
Me.UsedRange.Columns.AutoFit
End Sub
Thanks,
James E.