mark hansen
Well-known Member
- Joined
- Mar 6, 2006
- Messages
- 534
- Office Version
- 2016
- Platform
- Windows
I've been looking around the interweb for way to use VBA to refresh pivot tables and discovered there is also a pivot cache refresh. I found the following, and was wondering is one way better (maybe faster) than the other...
Set WS = ActiveSheet
For Each PT In WS.PivotTables
PT.PivotCache.Refresh
Next PT
Or
Set WS = ActiveSheet
For Each PT In WS.PivotTables
PT.RefreshTable
Next PT
What is the difference in data quality and or speed?
Thanks,
Mark
Set WS = ActiveSheet
For Each PT In WS.PivotTables
PT.PivotCache.Refresh
Next PT
Or
Set WS = ActiveSheet
For Each PT In WS.PivotTables
PT.RefreshTable
Next PT
What is the difference in data quality and or speed?
Thanks,
Mark