PivotField Property

Applies To

Range object.

Description

Returns a PivotField object that represents the pivot field containing the upper-left corner of the specified range. Read-only.

Example

This example displays the name of the pivot field that contains the active cell.

Worksheets("Sheet1").Activate
MsgBox "The active cell is in the field " & _
    ActiveCell.PivotField.Name