主题
Count (属性)
返回 PivotLineCells 集合中的项数。只读。
示例
javascript
/*本示例显示活动工作表上数据透视表中行轴上第一条数据透视线的PivotLineCells属性的PivotCell的数量。*/
function test() {
let pvtLine = ActiveSheet.Range("I1").PivotTable.PivotRowAxis.PivotLines(1)
console.log(pvtLine.PivotLineCells.Count)
}