This documentation is archived and is not being maintained.

PivotTable.SubtotalLocation Method

Office 2007
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.

Version Information
 Version Added:  Excel 2007

Syntax

expression.SubtotalLocation(Location)

expression   A variable that represents a PivotTable object.

Parameters

NameRequired/OptionalData TypeDescription
LocationRequiredXlSubtototalLocationTypexlSubtotalLocationType can be either xlAtTop or xlAtBottom.

Remarks

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




Show: