Bewerken

Delen via


Application.PivotTableSelection property (Excel)

True if PivotTable reports use structured selection. Read/write Boolean.

Syntax

expression.PivotTableSelection

expression A variable that represents an Application object.

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

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.