Excel Open Document doesn't load Personal Macro Workbook

Discuss RoboTask here
Post Reply
mikolka111
Posts: 4
Joined: Wed Sep 26, 2018 8:41 pm

Excel Open Document doesn't load Personal Macro Workbook

Post 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.
Oleg
Site Admin
Posts: 3010
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Excel Open Document doesn't load Personal Macro Workbook

Post 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.
Oleg Yershov
mikolka111
Posts: 4
Joined: Wed Sep 26, 2018 8:41 pm

Re: Excel Open Document doesn't load Personal Macro Workbook

Post 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.
mikolka111
Posts: 4
Joined: Wed Sep 26, 2018 8:41 pm

Re: Excel Open Document doesn't load Personal Macro Workbook

Post 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?
Oleg
Site Admin
Posts: 3010
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Excel Open Document doesn't load Personal Macro Workbook

Post 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
Oleg Yershov
mikolka111
Posts: 4
Joined: Wed Sep 26, 2018 8:41 pm

Re: Excel Open Document doesn't load Personal Macro Workbook

Post by mikolka111 »

Thanks, Oleg!
Mokrun
Posts: 2
Joined: Tue Oct 02, 2018 12:19 pm

Re: Excel Open Document doesn't load Personal Macro Workbook

Post by Mokrun »

I need to execute a pre-recorded macro once the Excel file is open.
Oleg
Site Admin
Posts: 3010
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Excel Open Document doesn't load Personal Macro Workbook

Post by Oleg »

New version included the action Excel Run Macro.
Oleg Yershov
Post Reply