Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 906 Bytes

Excel.PivotField.CurrentPage.md

File metadata and controls

38 lines (23 loc) · 906 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
PivotField.CurrentPage property (Excel)
vbaxl10.chm240077
vbaxl10.chm240077
Excel.PivotField.CurrentPage
4a59fe58-8f95-4cf3-d4a3-ab6ea6b24b8a
05/04/2019
medium

PivotField.CurrentPage property (Excel)

Returns or sets the current page showing for the page field (valid only for page fields). Read/write PivotItem.

Syntax

expression.CurrentPage

expression A variable that represents a PivotField object.

Example

This example returns the current page name for the PivotTable report on Sheet1 in the string variable strPgName.

Set pvtTable = Worksheets("Sheet1").Range("A3").PivotTable 
strPgName = pvtTable.PivotFields("Country").CurrentPage.Name

[!includeSupport and feedback]