Page 1 of 1
Excel Open Document doesn't load Personal Macro Workbook
Posted: Wed Sep 26, 2018 8:49 pm
by mikolka111
Hello,
I have an Excel macro in my personal macro workbook that is automatically imported every time I launch Excel app. The workbook is located at "\Users\(username)\AppData\Roaming\Microsoft\Excel\XLSTART". It loads properly if Excel is started manually or from command line.
However, every time when I open an Excel file from RoboTask using "Excel Open Document" command, the macro doesn't load.
Please help.
Thank you.
Re: Excel Open Document doesn't load Personal Macro Workbook
Posted: Thu Sep 27, 2018 10:44 am
by Oleg
Excel actions uses built-in COM interface of Excel application.
It always loads
clear document.
When you run Excel from command line then Excel works in its common mode.
Re: Excel Open Document doesn't load Personal Macro Workbook
Posted: Fri Sep 28, 2018 1:57 am
by mikolka111
Thank you for the reply, Oleg.
Is there any other way for me to load an Excel file from RoboTask so that I can execute the pre-installed macro?
The file is generated daily by a 3-rd party software, and I need to be able to format it in a certain way by using the macro I've created.
Re: Excel Open Document doesn't load Personal Macro Workbook
Posted: Fri Sep 28, 2018 8:57 pm
by mikolka111
Thank you for the reply, Oleg.
I need to execute a pre-recorded macro once the Excel file is open.
Is there any way to accomplish this via RoboTask?
Re: Excel Open Document doesn't load Personal Macro Workbook
Posted: Sat Sep 29, 2018 9:24 am
by Oleg
It seems you have to open Excel document from command line
Use
Run Program/Open Document action
Next, you have to use
Send Keystrokes action to run necessary macro
Re: Excel Open Document doesn't load Personal Macro Workbook
Posted: Tue Oct 02, 2018 2:40 am
by mikolka111
Thanks, Oleg!
Re: Excel Open Document doesn't load Personal Macro Workbook
Posted: Wed Oct 03, 2018 11:12 am
by Mokrun
I need to execute a pre-recorded macro once the Excel file is open.
Re: Excel Open Document doesn't load Personal Macro Workbook
Posted: Wed Nov 07, 2018 12:48 pm
by Oleg
New version included the action
Excel Run Macro.