DeleteFieldSet Method
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Deletes a field set that was created using the AddFieldSet method. The field set is removed from the PivotTable view and from the PivotFieldSets collection.
expression.DeleteFieldSet(FieldSet)
expression Required. An expression that returns a PivotView object.
FieldSet Required Variant. The name of, or a reference to, a custom field set.
Example
The following line of code deletes a custom field set named "Variance" from PivotTable1.
PivotTable1.ActiveView.DeleteFieldSet "Variance"