DeleteField Method

Microsoft Office Web Components Object Model

DeleteField Method

       

Deletes a calculated field that was created by the AddCalculatedField or AddCustomGroupField methods from the specified field set.

expression.DeleteField(Field)

expression   Required. An expression that returns a PivotFieldSet object.

Field  Required Variant. The name, unique name or reference to a calculated field in the field set.