共用方式為


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.

Version Information

Version Added: Excel 2007

Syntax

expression .SubtotalLocation(Location)

expression A variable that represents a PivotTable object.

Parameters

Name

Required/Optional

Data Type

Description

Location

Required

XlSubtototalLocationType

xlSubtotalLocationType can be either xlAtTop or xlAtBottom.

Remarks

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

請參閱

概念

PivotTable Object

PivotTable Object Members