PivotCaches 集合对象

         
Workbooks (Workbook)
PivotCaches (PivotCache)

代表工作簿中数据透视表内存缓冲区的集合。每个内存缓冲区都由一个 PivotCache 对象表示。

PivotCaches 集合的用法

可用 PivotCaches 方法返回 PivotCaches 集合。下例对当前活动工作簿中所有数据透视表内存缓冲区的 RefreshOnFileOpen 属性进行设置。

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