Skip to content

Latest commit

 

History

History
43 lines (25 loc) · 1.09 KB

Excel.PivotTable.PageFieldStyle.md

File metadata and controls

43 lines (25 loc) · 1.09 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
PivotTable.PageFieldStyle property (Excel)
vbaxl10.chm235120
vbaxl10.chm235120
Excel.PivotTable.PageFieldStyle
8871fad2-211f-8c25-efe8-09d385c02a4e
05/09/2019
medium

PivotTable.PageFieldStyle property (Excel)

Returns or sets the style used in the bound page field area. The default value is a null string (no style is applied by default). Read/write String.

Syntax

expression.PageFieldStyle

expression A variable that represents a PivotTable object.

Remarks

This style is used as the default style for the background area, and it's applied before any user formatting. Cells vacated when a field is pivoted from the page field area to another location retain this style.

Example

This example sets the page field area of the first PivotTable report on worksheet one to the PurpleAndGold style.

Worksheets(1).PivotTables("Pivot1") _ 
 .PageFieldStyle = "PurpleAndGold"

[!includeSupport and feedback]