PivotTable.RowAxisLayout (Excel)

This method is used for simultaneously setting layout options for all existing PivotFields.

This method is atomic so it makes sure that if layout options cannot be set on any PivotField, the layout options of none of the fields will change, and no change is made to the PivotTable.

RowAxisLayout (RowLayout)

RowLayout: Specifies the type of layout row. Can be xlCompactRow, xlTabularRow, or xlOutlineRow.


ActiveCell.PivotTable.RowAxisLayout RowLayout:=xlCompactRow