Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 1.12 KB

Excel.PivotTable.SubtotalLocation.md

File metadata and controls

39 lines (23 loc) · 1.12 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
PivotTable.SubtotalLocation method (Excel)
vbaxl10.chm235167
vbaxl10.chm235167
Excel.PivotTable.SubtotalLocation
df2655d8-9e5f-e9d2-ba88-f92a1d843dfb
05/09/2019
medium

PivotTable.SubtotalLocation method (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.

Syntax

expression.SubtotalLocation (Location)

expression A variable that represents a PivotTable object.

Parameters

Name Required/Optional Data type Description
Location Required XlSubtotalLocationType XlSubtotalLocationType can be either xlAtTop or xlAtBottom.

Remarks

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

[!includeSupport and feedback]