Double problem with foreground window and killing Excel

Hi everyone !

I struggle with two aspects and I hope I’ll find some insights here :slight_smile:

First of all, I can’t kill Excel.
All UI activities does not work so I’ve decided to use a kill process.
But even with that Excel is still there.

Any idea on this point ?

With that Excel window open, I have an other window in the background, and unfortunatly I cannot interact with it if it’s not foreground.

So in order to put it in front I tried:
Activate / Attach window / Find element / Use foreground / Maximize.

Here again it’s not working.

If anyone as an idea for one of these problems please let me know :slight_smile:

Have a nice day !

Hi @Geoffroy_Pantegnies ,

In order to kill excel, in the kill activity in the process name…put “EXCEL”

and in order to bring the window to the foreground, use attach window, and in that attach window, perform a click at any empty place in that window…it will bring it to the foreground…and make sure simulate click and send window messages are both set to false.

What are you trying to achieve in excel that you have it open? you can read and write to excel wihout opening the application in uipath

Thanks for answering @ahmad.sultan !

Yes, the Kill Excel has “EXCEL” written in the process name. I don’t think the activity is the problrm but the Excel file is. Every UI based activities are not working on this Excel file.

For the foreground, I tried the click with and without the simulate, but it’s inside the attach window yes, and the selectors are good.

Thanks for answering @SoreyJay !

Indeed that’s a good idea… nothing special need to be done in Excel Scope Application but there is so much to change and test that I would like to be sure I’ve used evey other options before.