Convert WorkbookApplication variable into UiElement variable

Hello All,

What I am looking into, is that whether it is possible to have the activity “Set Focus” have an input as a window instead of a UiElement.

So if I use Excel application scope, and open a certain excel file, I can get the output of this activity and set the focus for this specific excel, instead of using indicator which may not be as reliable,

Is this possible?

HI @Rasoul

Have you tried the Activate activity which you can use to activate a particular window or an UI element so that the remaining activities can follow working on the new active window?

1 Like

Instead we can directly use START PROCESS activity and mention the file path excel as input in FileName property so that it will bring to the foreground with active window set automatically
Which is more reliable

Cheers @Rasoul

1 Like