Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 954 Bytes

Excel.PivotField.ParentField.md

File metadata and controls

38 lines (24 loc) · 954 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
PivotField.ParentField property (Excel)
vbaxl10.chm240089
vbaxl10.chm240089
Excel.PivotField.ParentField
4b609a86-9a25-f292-7446-2a65ea1f90a0
05/07/2019
medium

PivotField.ParentField property (Excel)

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.

Syntax

expression.ParentField

expression A variable that represents a PivotField object.

Example

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]