全部显示

PivotFormula 对象

         
PivotTables (PivotTable)
PivotFormulas (PivotFormula)

代表在数据透视表中用于计算的公式。

说明

本对象及其相关属性和方法对于 OLAP 数据源无效,这是因为它不支持计算字段和计算项。

PivotFormula 对象的用法

可用 PivotFormulas(index) 返回 PivotFormula 对象,其中 index 为公式左侧的公式号或字符串。下例将更改公式一(第一张工作表的第一个数据透视表中)的索引号,使其在公式二计算完毕后再进行计算。

Worksheets(1).PivotTables(1).PivotFormulas(1).Index = 2