title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
PivotField.ParentField property (Excel) |
vbaxl10.chm240089 |
|
|
4b609a86-9a25-f292-7446-2a65ea1f90a0 |
05/07/2019 |
medium |
Returns a PivotField object that represents the PivotTable field that's the group parent of the specified object. The field must be grouped and must have a parent field. Read-only.
expression.ParentField
expression A variable that represents a PivotField object.
This example displays the name of the field that's the group parent of the field that contains the active cell.
Worksheets("Sheet1").Activate
MsgBox "The active field is a child of the field " & _
ActiveCell.PivotField.ParentField.Name
[!includeSupport and feedback]