PivotField.PivotItems(Object) Method

Definition

Returns an object that represents either a single PivotTable item (a PivotItem object) or a collection of all the visible and hidden items (a PivotItems object) in the specified field. Read-only.

public object PivotItems (object Index);
Public Function PivotItems (Optional Index As Object) As Object

Parameters

Index
Object

Optional Object. The name or number of the item to be returned.

Returns

Remarks

For OLAP data sources, the collection is indexed by the unique name (the name returned by the SourceName property), not by the display name.

Applies to