简体   繁体   中英

how to call excel macro which contains call of external add-in from C# application?

I have C# console application which calls excel, opens excel template and runs number of macros. My macro contains calls of functions from external add-in. the application is supposed to run every night, so I'm using scheduled tasks for this purpose. The problem is that when application runs as scheduled task add-in functions are ignored because excel is running in this case as background process. Has somebody faced with such kind of problem?

Elena

I use excel from windows service, and I use macros as you. And all work fine.

So I suggest to run excel not from standart sheduller. Use external software for it, or implement custom windows service.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM