主题
Count (属性)
返回 PivotLineCells 集合中的项数。只读。
示例
python
#本示例显示活动工作表上数据透视表中行轴上第一条数据透视线的PivotLineCells属性的PivotCell的数量
def test():
pvtLine = ActiveSheet.Range("I1").PivotTable.PivotRowAxis.PivotLines(1)
print(pvtLine.PivotLineCells.Count)