PivotItemList object (Excel)

A collection of all the PivotItem objects in the specified PivotTable.

Remarks

Each PivotItem represents an item in a PivotTable field.

Use the RowItems or ColumnItems property of the PivotCell object to return a PivotItemList collection.

Example

After a PivotItemList collection is returned, you can use the Item method of the PivotItems object to identify a particular PivotItem list.

The following example displays the PivotItem list associated with cell B5 to the user. This example assumes that a PivotTable exists on the active worksheet.

Sub CheckPivotItemList() 
 
 ' Identify contents associated with PivotItemList. 
 MsgBox "Contents associated with cell B5: " & _ 
 Application.Range("B5").PivotCell.RowItems.Item(1) 
 
End Sub

Methods

Properties

See also

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.