Skip to content

Latest commit

 

History

History
183 lines (161 loc) · 8.35 KB

Excel.PivotTable.md

File metadata and controls

183 lines (161 loc) · 8.35 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
PivotTable object (Excel)
vbaxl10.chm234072
vbaxl10.chm234072
Excel.PivotTable
a9c1d4a0-78a9-f9a6-6daf-91cb63e45842
03/30/2019
medium

PivotTable object (Excel)

Represents a PivotTable report on a worksheet.

Remarks

The PivotTable object is a member of the PivotTables collection. The PivotTables collection contains all the PivotTable objects on a single worksheet.

Because PivotTable report programming can be complex, it's generally easiest to record PivotTable report actions and then revise the recorded code.

Example

Use PivotTables (index), where index is the PivotTable index number or name, to return a single PivotTable object.

The following example makes the field named Year a row field in the first PivotTable report on Sheet3.

Worksheets("Sheet3").PivotTables(1) _ 
 .PivotFields("Year").Orientation = xlRowField

Methods

Properties

See also

[!includeSupport and feedback]