|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Workbook.PivotCaches Method (2007 System)
Gets a PivotCaches collection that represents all the PivotTable caches in the specified workbook.
Assembly: Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)
The following code example uses the method to set each PivotCache in the current workbook to update automatically each time the workbook is opened.
This example is for a document-level customization.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.