Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
Returns or sets the PivotTable report structured selection mode. Read/write XlPTSelectionMode.
Syntax
expression.SelectionMode
expression A variable that represents a PivotTable object.
Remarks
If the PivotTable field isn't in outline form, specifying the sum of any of the constants and xlFirstRow is equivalent to specifying the constant alone.
Example
This example enables structured selection mode, and then sets the first PivotTable report on worksheet one to allow only data to be selected.
Application.PivotTableSelection = True
Worksheets(1).PivotTables(1).SelectionMode = xlDataOnly
In this example, the PivotTable report is in outline form.
Application.PivotTableSelection = True
Worksheets(1).PivotTables(1).SelectionMode = _
xlDataOnly + xlFirstRow
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.