Syntax

expression.EnableMultiplePageItems

expression A variable that represents a CubeField object.

Example

This example determines if multiple page items are enabled for the cube field and notifies the user. The example assumes that an OLAP PivotTable exists on the active worksheet.

Visual Basic for Applications
Sub UseMultiplePageItems() Dim pvtTable As PivotTable Dim cbeField As CubeField Set pvtTable = ActiveSheet.PivotTables(1) Set cbeField = pvtTable.CubeFields("[Country]") ' Determine setting for mulitple page items. If cbeField.EnableMultiplePageItems = False Then MsgBox "Mulitple page items cannot be selected." Else MsgBox "Multiple page items can be selected." End If End Sub 

See also: