Hello,
I’m not very good with pivot tables (one of my ‘strong weaknesses’ in Excel), so I can’t make out the following error message. I received a file from Poland which included a macro – among others – to create a pivot table. I ran the macro, however that stopped at the addfields…line. I’ve been searching in the Help file, on the internet/newsgroups, but I have only found 3 mentions of this error, and none with a real solution at hand.
Here is the part of the macro that doesn’t run. From the Help I gathered that the syntax should be ok, so I’m lost!!!
Please help if possible.
Thanks,
K.
ActiveSheet.PivotTableWizard TableDestination:=ActiveSheet.Cells(3, 1)
ActiveSheet.Cells(3, 1).Select
ActiveSheet.PivotTables(“Tabela przestawna1”).SmallGrid = False
ActiveSheet.PivotTables(“Tabela przestawna1″).AddFields RowFields:=”Dane”, _
ColumnFields:=”group”
The problem is at the very last line where ‘Addfields’ in included.