PivotCell.CustomSubtotalFunction Property
Excel Developer Reference |
Returns the custom subtotal function field setting of a PivotCell object. Read-only XlConsolidationFunction.
Syntax
expression.CustomSubtotalFunction
expression A variable that represents a PivotCell object.
Remarks
XlConsolidationFunction can be one of these 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.
Example
This example determines if cell C20 contains a custom subtotal function that uses a consolidation function of count and then it notifies the user. The example assumes a PivotTable exists on the active worksheet.
Visual Basic for Applications |
---|
|
See Also