Created
February 4, 2018 22:11
-
-
Save strickc/000fc4d666ff8b81ec2aa66700bc9356 to your computer and use it in GitHub Desktop.
Auto update pivot tables Excel vba
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
' Paste in script for each worksheet you want to auto-update the pivot tables for | |
Private Sub Worksheet_Activate() | |
Dim p As PivotTable | |
For Each p In ActiveSheet.PivotTables | |
p.PivotCache.Refresh | |
Next p | |
Cells.EntireColumn.AutoFit | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment