Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 990 Bytes

Excel.PivotItem.ParentItem.md

File metadata and controls

44 lines (26 loc) · 990 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
PivotItem.ParentItem property (Excel)
vbaxl10.chm246079
vbaxl10.chm246079
Excel.PivotItem.ParentItem
7d0959e5-5abc-c84f-7037-19b761f36294
05/07/2019
medium

PivotItem.ParentItem property (Excel)

Returns a PivotItem object that represents the parent PivotTable item in the parent PivotField object (the field must be grouped so that it has a parent). Read-only.

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.

Worksheets("Sheet1").Activate 
MsgBox "This item is a subitem of " & _ 
 ActiveCell.PivotItem.ParentItem.Name

[!includeSupport and feedback]