Syntax

expression.ParentItem

expression A variable that represents a PivotItem object.

Remarks

This property isn't available for OLAP data sources.

Example

This example displays the name of the parent item for the item that contains the active cell.

Visual Basic for Applications
Worksheets("Sheet1").Activate MsgBox "This item is a subitem of " & _ ActiveCell.PivotItem.ParentItem.Name
parent item Parent Item Property ParentItem parentitem property

See also: