I'm running this code, yet there are a couple of pivot tables on my workbook that don't seem to be refreshing when i run it. I have 10+ pivot tables in the workbook, but when i check them by refreshing each one individually, there are a couple on one of the worksheets that change...meaning it wasn't refreshed by this code. What would the reasoning be? There are no restrictions whatsoever on the workbook or worksheets:
Code:
Dim ws As Worksheet
Dim pt As PivotTable
For Each ws In Activeworkbook.Worksheets
For Each pt In ws.PivotTables
pt.RefreshTable
Next pt
Next ws