Last updated: July 3, 2010 1:14 PM
Search Contextures Sites ![]()
Excel Pivot Table Tutorial -- Pivot Cache
Download the zipped sample file for this pivot table tutorial
- Show the Pivot Table's CacheIndex
- Show the Pivot Cache Memory Used
- Show the Pivot Cache Record Count
- Change the Pivot Cache
- Pivot Table Tutorial List
Change the Pivot Cache
If you have created several Pivot Tables in a workbook, you may find it more efficient to use the same pivot cache for all the Pivot Tables. The following code will change the pivot cache for each pivot table in the workbook.
Sub ChangePivotCache() 'pivot table tutorial by contextures.com 'change pivot cache for all Pivot Tables in workbook Dim pt As PivotTable Dim wks As Worksheet For Each wks In ActiveWorkbook.Worksheets For Each pt In wks.PivotTables pt.CacheIndex = Sheets("Pivot").PivotTables(1).CacheIndex Next pt Next wks End SubDownload the zipped sample file for this pivot table tutorial
Contextures Inc., Copyright ©2012
All rights reserved.