Currently I try to write a service (run by system account) that creates macro in an Excel workbook. It seems that I can open excel, create a new workbook, add data and markup to it, but when I try to add a macro to the excel, I get a security message:
"Programmatic access to Visual Basic Project is not trusted"
I do have "Trust access to vba project object medal" turned on. However, is it possible that this setting is user-dependent instead of machine dependent? Is there a way to let my C# service have access to the macros of the excel workbooks it creates (at time of creation...)
thanx!!!
Best regards,
Jan