如果数据透视表显示列的总计,则该值为 True。Boolean 类型,可读写。
本示例设置数据透视表显示列的总计。
Set pvtTable = Worksheets("Sheet1").Range("A3").PivotTable pvtTable.ColumnGrand = True