-
-
Save hedgejanuary/d0360aad84c041657c513fdd8abb2e2d to your computer and use it in GitHub Desktop.
Refresh all the pivot tables in a workbook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub Workbook_Open() | |
'refresh all the pivot tables in the workbook | |
Dim PT As PivotTable | |
Dim WS As Worksheet | |
For Each WS In Me.Worksheets | |
For Each PT In WS.PivotTables | |
PT.RefreshTable | |
Next PT | |
Next WS | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment