Remarks

You use this object primarily for macro recording; it is not intended for any other use.

Example

Use the property to return the TreeviewControl object. The following example sets the control to its "drilled" (expanded, or visible) status for the states of California and Maryland in the second PivotTable report on the active worksheet.

Visual Basic for Applications
ActiveSheet.PivotTables("PivotTable2") _ .CubeFields(1).TreeviewControl.Drilled = _ Array(Array("", ""), _ Array("[state].[states].[CA]", _ "[state].[states].[MD]")) 
Treeview Control Object treeviewcontrol TreeviewControl Object

See also: