PivotField.IsCalculated property (Excel)

True if the PivotTable field is a calculated field or item. Read-only Boolean.

Syntax

expression.IsCalculated

expression A variable that represents a PivotField object.

Remarks

For OLAP data sources, this property always returns False.

Example

This example disables the PivotTable Field dialog box if the specified PivotTable report contains any calculated fields.

set pt = Worksheets(1).PivotTables("Pivot1") 
For Each fld in pt.PivotFields 
 If fld.IsCalculated Then pt.EnableFieldDialog = False 
Next

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.