PivotCache object (Excel)
Represents the memory cache for a PivotTable report.
Remarks
The PivotCache object is a member of the PivotCaches collection.
Example
Use the PivotCache method of the PivotTable object to return a PivotCache object for a PivotTable report (each report has only one cache).
The following example causes the first PivotTable report on the first worksheet to refresh itself whenever its file is opened.
Worksheets(1).PivotTables(1).PivotCache.RefreshOnFileOpen = True
Use PivotCaches (index), where index is the PivotTable cache number, to return a single PivotCache object from the PivotCaches collection for a workbook. The following example refreshes cache one.
ActiveWorkbook.PivotCaches(1).Refresh
Methods
Properties
- ADOConnection
- Application
- BackgroundQuery
- CommandText
- CommandType
- Connection
- Creator
- EnableRefresh
- Index
- IsConnected
- LocalConnection
- MaintainConnection
- MemoryUsed
- MissingItemsLimit
- OLAP
- OptimizeCache
- Parent
- QueryType
- RecordCount
- Recordset
- RefreshDate
- RefreshName
- RefreshOnFileOpen
- RefreshPeriod
- RobustConnect
- SavePassword
- SourceConnectionFile
- SourceData
- SourceDataFile
- SourceType
- UpgradeOnRefresh
- UseLocalConnection
- Version
- WorkbookConnection
See also
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.
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per