WPS 基础接口 > 表格 API 参考 > PivotCaches > PivotCaches 对象

代表工作簿中数据透视表的内存缓存的集合。

说明

每一个内存缓存都由一个 PivotCache 对象代表。

示例

使用 PivotCaches 方法可返回 PivotCaches 集合。下例为活动工作簿中的所有内存缓存设置 RefreshOnFileOpen 属性。

示例代码
for (let i=1;i<=ActiveWorkbook.PivotCaches.Count;i++) {
    ActiveWorkbook.PivotCaches().Item(i).RefreshOnFileOpen = true
}


请参阅