Skip to content
本页内容

Value (属性)

返回或设置一个 str 值,它代表数据透视表的名称。

示例

python
#本示例显示第一张数据表的名称
def test():
    print(Worksheets.Item(1).PivotTables(1).Value)
python
#本示例将活动工作表中第一张数据透视表的名称设置为“总结”,并弹窗显示名称
def test():
    ActiveSheet.PivotTables(1).Value = "总结"
    print(ActiveSheet.PivotTables(1).Value)