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"

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.