I hope someone can help.
I am performing an upgrade from NAV 4.02 to NAV 2009 SP1. I have a codeunit that was used to create an Excel spreadsheet using automation variables for the Excel Application, Workbook, and Sheet. I have taken the object from 4.02 and imported into 2009, and it will not compile failing with the error
"The variable XLWOOKBOOK::SHEETPIVOTTABLEBEF is defined more than once"
I have tried copying the variables from codeunit 424 and pasting into my codeunit, but still get the same error! Even copying them into an empty codeunit gives the problem
Anyone got any ideas what is happening?
0
Comments
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Surely by having the WithEvents set to No, it should not have created the events in the first place?
When compiling Table 370 Excel Buffer, it would not compile with this as the error:
Saving it uncompiled, exporting as text, deleting all the events that SHOULDN'T EVEN BE THERE (I had WithEvents to No on all of them, so annoying that it does this), and reimporting, then compiling.
Thanks all for the help.
CEO, Spare Brained Ideas, Göteborg, Sweden
New (April 2021) Getting Started with Microsoft Dynamics 365 Business Central Book Available: "Your First 20 Hours with Business Central"
If you log into any different non-64 bit machine, save and compile it, the report carries you around the xlapp automation error.
d.
Good to know that works too.
CEO, Spare Brained Ideas, Göteborg, Sweden
New (April 2021) Getting Started with Microsoft Dynamics 365 Business Central Book Available: "Your First 20 Hours with Business Central"
https://mbs.microsoft.com/knowledgebase/KBDisplay.aspx?scid=kb;EN-US;2256756