PivotItem.ParentShowDetail property (Excel)
True if the specified item is showing because one of its parents is showing detail. False if the specified item isn't showing because one of its parents is hiding detail. This property is available only if the item is grouped. Read-only Boolean.
Syntax
expression.ParentShowDetail
expression A variable that represents a PivotItem object.
Remarks
This property isn't available for OLAP data sources.
Example
This example displays a message if the item that contains the active cell is visible because its parent item is showing detail.
Worksheets("Sheet1").Activate
Set pvtItem = ActiveCell.PivotItem
If pvtItem.ParentShowDetail = True Then
MsgBox "Parent item is showing detail"
End If
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.