全部显示

RefreshDate 属性

       

返回数据透视表或高速缓存最近一次刷新的日期。Date 类型,只读。

说明

对于 PivotCache 对象,该高速缓存必须至少有一个与之关联的数据透视表。

对于 OLAP 数据源,在每次查询后,本属性都被更新。

示例

本示例显示数据透视表最近一次刷新的日期。

Set pvtTable = Worksheets("Sheet1").Range("A3").PivotTable
dateString = Format(pvtTable.RefreshDate, "Long Date")
MsgBox "The data was last refreshed on " & dateString