Strange, error 0 would actually mean no error. I haven't used pivot tables, so my only guess would be to make sure that "Data" and "Sum of Amount" do actually exist.
Excel 2003 VBA crashes Excel 2007?
Collapse
X
-
I did it!
Old code line 59-60:
ActiveSheet.Piv otTables("Pivot Table1").PivotF ields("Data").P ivotItems( _
"Sum of Amount").Name = "Revenue Report"
New code (changes in bold):
ActiveSheet.Piv otTables("Pivot Table1").DataPivotField.PivotItems("Su m of Amount").Caption = "Revenue Report"
THANK YOU ALL!Comment
Comment