CubeField.EnableMultiplePageItems property (Excel)

Set to True to allow multiple items in the page field area for OLAP PivotTables to be selected. The default value is False. Read/write Boolean.

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.

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

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.