PivotTable.PivotSelection Property (Excel)

Returns or sets the PivotTable selection in standard PivotTable report selection format. Read/write String.

Syntax

.PivotSelection

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]"

참고 항목

개념

PivotTable Object

PivotTable Object Members