Share via


PivotCell.CustomSubtotalFunction Property

Returns the custom subtotal function field setting of a PivotCell object.

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

Syntax

'Declaration
ReadOnly Property CustomSubtotalFunction As XlConsolidationFunction
    Get
'Usage
Dim instance As PivotCell
Dim value As XlConsolidationFunction

value = instance.CustomSubtotalFunction
XlConsolidationFunction CustomSubtotalFunction { get; }

Property Value

Type: Microsoft.Office.Interop.Excel.XlConsolidationFunction

Remarks

XlConsolidationFunction can be one of the following XlConsolidationFunction constants:

xlAverage

xlCount

xlCountNums

xlMax

xlMin

xlProduct

xlStDev

xlStDevP

xlSum

xlUnknown

xlVar

xlVarP

The CustomSubtotalFunction property will return an error if the PivotCell object type is not a custom subtotal. This property applies only to non-OLAP source data.

See Also

Reference

PivotCell Interface

PivotCell Members

Microsoft.Office.Interop.Excel Namespace