ParentItems Property

ParentItems Property

See Also         Example         Applies To

Returns an object that represents either a single PivotTable item (a PivotItem object, Syntax 1) or a collection of all the items (a PivotItems object, Syntax 2) that are group parents in the specified field. The specified field must be a group parent of another field. Read-only.

Syntax 1

expression.ParentItems(Index)

Syntax 2

expression.ParentItems

expression   Required. An expression that returns a PivotField object.

Index   Optional Variant. The number or name of the item to be returned (can be an array to specify more than one item).

Remarks

This property isn’t available for OLAP data sources.