Düzenle

Aracılığıyla paylaş


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.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.