PivotTable.PageFieldStyle Property (Excel)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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.

expression .PageFieldStyle

expression A variable that represents a PivotTable object.

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.

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"
Show: