N
norcombe
Hi all,
I would like to create a macro to:
1) Create a Pivot Table
2) Move and rename the resulting worksheet
All goes well when I am recording it, however when the macro tries t
select the data fields and add them to the macro I get the followin
error message:
run-time error '1004'
AddFields method of PivotTable Class Failed.
In the VBA screen the following code is highlighted:
ActiveSheet.PivotTables("PivotTable5").AddFields RowFields:=Array( _
"Level 5 CC", "Level 9 CC", "Level 8 A/C")
Can anybody tell me how I can correct this.
Thank
I would like to create a macro to:
1) Create a Pivot Table
2) Move and rename the resulting worksheet
All goes well when I am recording it, however when the macro tries t
select the data fields and add them to the macro I get the followin
error message:
run-time error '1004'
AddFields method of PivotTable Class Failed.
In the VBA screen the following code is highlighted:
ActiveSheet.PivotTables("PivotTable5").AddFields RowFields:=Array( _
"Level 5 CC", "Level 9 CC", "Level 8 A/C")
Can anybody tell me how I can correct this.
Thank