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
Location
Type: Microsoft.Office.Interop.Excel.XlSubtototalLocationTypeRequired XlSubtototalLocationType can be either xlAtTop or xlAtBottom.
Remarks
The SubtotalLocation(XlSubtototalLocationType) method sets the LayoutSubtotalLocation property for all existing PivotFields automatically.