Partager via


PivotTable.SubtotalLocation Method

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.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Sub SubtotalLocation ( _
    Location As XlSubtototalLocationType _
)
'Usage
Dim instance As PivotTable
Dim Location As XlSubtototalLocationType

instance.SubtotalLocation(Location)
void SubtotalLocation(
    XlSubtototalLocationType Location
)

Parameters

Remarks

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

See Also

Reference

PivotTable Interface

PivotTable Members

Microsoft.Office.Interop.Excel Namespace