代表数据透视图报表中字段的位置。
示例
使用 PivotLayout 属性可返回一个 PivotLayout
对象。下例创建在第一个数据透视图报表中所使用的数据透视表字段名称的列表。
示例代码 |
function ListFieldNames() {
let objNewSheet = Worksheets.Add()
let intRow = 1
for(let i=1;i <= Charts.Item("Chart1").PivotLayout.PivotFields().Count;i++) {
objNewSheet.Cells.Item(intRow, 1).Value2 = Charts.Item("Chart1").PivotLayout.PivotFields(i).Caption
intRow++
}
}
|