PivotCaches Collection Object

         Properties         Methods        

Workbooks collection (Workbook object)
PivotCaches collection (PivotCache object)

Represents the collection of memory caches from the PivotTable reports in a workbook. Each memory cache is represented by a PivotCache object.

Using the PivotCaches Collection

Use the PivotCaches method to return the PivotCaches collection. The following example sets the RefreshOnFileOpen property for all memory caches in the active workbook.

For Each pc In ActiveWorkbook.PivotCaches
    pc.RefreshOnFileOpen = True
Next