title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
PivotTable.SubtotalLocation method (Excel) |
vbaxl10.chm235167 |
|
|
df2655d8-9e5f-e9d2-ba88-f92a1d843dfb |
05/09/2019 |
medium |
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.
expression.SubtotalLocation (Location)
expression A variable that represents a PivotTable object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
Location | Required | XlSubtotalLocationType | XlSubtotalLocationType can be either xlAtTop or xlAtBottom. |
The SubtotalLocation method sets the LayoutSubtotalLocation property for all existing PivotFields automatically.
[!includeSupport and feedback]