PivotField Property

Applies To

Range Object.

Description

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

Example

This example displays the name of the pivot field containing the active cell.


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