PivotTable.SubtotalLocation (Excel)

This method changes the subtotal location for all existing PivotFields. Changing the subtotal location has an immediate visual effect only for fields in outline form, but it will be set for fields in tabular form as well.

The SubtotalLocation method sets the LayoutSubtotalLocation property for all existing PivotFields automatically.

SubtotalLocation (Location)

Location: XlSubtotalLocationType can be either xlAtTop or xlAtBottom.


ActiveCell.PivotTable.SubtotalLocation Location:=xlAtBottom