Skip to content
本页内容

ShowValuesRow (属性)

返回或设置是否显示值行。可读/写

说明

此属性对应于**“数据透视表选项”对话框的“显示”选项卡上的“显示值行”**复选框的设置。

示例

python
#本示例显示数据透视表的值行
def test():
    Worksheets.Item(1).PivotTables(1).ShowValuesRow = True
python
#本示例显示数据透视表 ShowValuesRow 属性的数据类型,并设置为 False
def test():
    print(type(ActiveSheet.PivotTables(1).ShowValuesRow))
    ActiveSheet.PivotTables(1).ShowValuesRow = False