Skip to content

Latest commit

 

History

History
42 lines (24 loc) · 1011 Bytes

Excel.PivotTable.PivotSelection.md

File metadata and controls

42 lines (24 loc) · 1011 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
PivotTable.PivotSelection property (Excel)
vbaxl10.chm235124
vbaxl10.chm235124
Excel.PivotTable.PivotSelection
efc3898f-aba8-3ffb-1421-da4c4864b712
05/09/2019
medium

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

[!includeSupport and feedback]