PivotTable.PageFieldWrapCount property (Excel)

Returns or sets the number of page fields in each column or row in the PivotTable report. Read/write Long.

Syntax

expression.PageFieldWrapCount

expression A variable that represents a PivotTable object.

Example

This example causes the PivotTable report to draw three page fields in a row before starting a new row.

With Worksheets(1).PivotTables("Pivot1") 
 .PageFieldOrder = xlOverThenDown 
 .PageFieldWrapCount = 3 
End With

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.