Calculated fields

N

nc

I am having problems deleting calculated fields. I can delete a few
manually, then it crashes the workbook? Has anyone had this problem.

I tried to delete all the calculated fileds, using macro the following macro
form Excel Help

Private Sub DeleteCalcFields_Click()

For Each fld In _
Worksheets("Create calc
fields").PivotTables("PivotTable1").CalculatedFields
fld.Delete
Next

End Sub

Once I run this macro I cannot access calculated fields at all.

Any help is appreciated.
 
Top