makeitwork09
Technical User
I am using Excel 2007 on Windows 7.
The code below gets rid of everything, the row fields and the data fields, thus only leaving the header rows, eventually resulting in an error that reads "Unable to set the subtotal property of the pivot class".
Any ideas on how I can fix this?
Thanks
Pam
The code below gets rid of everything, the row fields and the data fields, thus only leaving the header rows, eventually resulting in an error that reads "Unable to set the subtotal property of the pivot class".
Code:
For Each pf In .PivotFields
pf.Subtotals(1) = True
pf.Subtotals(1) = False
Next pf
Any ideas on how I can fix this?
Thanks
Pam