ShowPageMultipleItemLabel 属性

       

如果为 True(默认),那么只要隐藏了项,并且在数据透视表视图中显示非隐藏项的总计,“( 多个项目 )”将显示在工作表的数据透视表单元格中。Boolean 类型,可读写。

expression.ShowPageMultipleItemLabel

expression   必需。该表达式返回一个 PivotTable 对象。

示例

本示例判断“( 多个项目 )”是否显示在数据透视表单元格中,并通知用户。本示例假定数据透视表位于活动工作表上。


Sub UseShowPageMultipleItemLabel()

    Dim pvtTable As PivotTable

    Set pvtTable = ActiveSheet.PivotTables(1)

    ' Determine if multiple items are allowed.
    If pvtTable.ShowPageMultipleItemLabel = True Then
        MsgBox "The words 'Multiple Items' can be displayed."
    Else
        MsgBox "The words 'Multiple Items' cannot be displayed."
    End If

End Sub