Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 851 Bytes

Excel.Range.PivotField.md

File metadata and controls

39 lines (24 loc) · 851 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Range.PivotField property (Excel)
vbaxl10.chm144175
vbaxl10.chm144175
Excel.Range.PivotField
56003d2d-60cd-abd2-455e-4a4d3616a615
05/11/2019
medium

Range.PivotField property (Excel)

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

Syntax

expression.PivotField

expression A variable that represents a Range object.

Example

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

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

[!includeSupport and feedback]