| ET 开发人员参考 |
| PivotTable.ChangePivotCache 方法 |
语法
表达式.ChangePivotCache(bstr)
表达式 一个代表 PivotTable 对象的变量。
参数
| 名称 | 必选/可选 | 数据类型 | 说明 |
|---|---|---|---|
| bstr | 必选 | String | 一个 PivotTable 或 PivotCache 对象,该对象代表指定 PivotTable 的新 PivotCache。 |
说明
ChangePivotCache 方法只能用于使用工作表中存储的数据作为数据源的 PivotTable。如果将 ChangePivotCache 方法与连接到外部数据源的 PivotTable 一起使用,将发生运行时错误。