PivotTable.PivotCache method (Excel)
Returns a PivotCache object that represents the cache for the specified PivotTable report. Read-only.
Syntax
expression.PivotCache
expression A variable that represents a PivotTable object.
Return value
PivotCache
Example
This example causes the PivotTable cache for the first PivotTable report on worksheet one to be optimized when it's constructed.
Worksheets(1).PivotTables("Pivot1") _
.PivotCache.OptimizeCache = True
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.