Skip to content

Files

Latest commit

author
Docs Allowlist Management
Mar 22, 2024
76d3237 · Mar 22, 2024

History

History
39 lines (24 loc) · 847 Bytes

Excel.PivotItem.Position.md

File metadata and controls

39 lines (24 loc) · 847 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
PivotItem.Position property (Excel)
vbaxl10.chm246081
vbaxl10.chm246081
Excel.PivotItem.Position
07e78622-f869-40d0-276a-b015ebe7a90f
05/07/2019
medium

PivotItem.Position property (Excel)

Returns or sets a Long value that represents the position of the item in its field, if the item is currently showing.

Syntax

expression.Position

expression A variable that represents a PivotItem object.

Example

This example displays the position number of the PivotTable item that contains the active cell.

Worksheets("Sheet1").Activate 
MsgBox "The active item is in position number " & _ 
 ActiveCell.PivotItem.Position

[!includeSupport and feedback]