PivotTable.PivotSelection property (Excel)
Returns or sets the PivotTable selection in standard PivotTable report selection format. Read/write String.
Syntax
expression.PivotSelection
expression A variable that represents a PivotTable object.
Remarks
Setting this property is equivalent to calling the PivotSelect method with the Mode argument set to xlDataAndLabel.
Example
This example selects the data and label for the salesperson named Bob in the first PivotTable report on worksheet one.
Worksheets(1).PivotTables(1).PivotSelection = "Salesman[Bob]"
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.
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per