Stop excel application scope from closing excel file

Hi!
I wanna ask if there is any way to stop excel application scope from closing excel file (Let’s call it File A) as the macro in File A is coded to close File A and open excel file B.

As the macro closes File A, RPA popped out error message.

Take note that I did not code the macro.

Capture

Hi @zefang

Ensure that the visible property of Excel application scope is not been selected or checked

Thanks
Ashwin.S

Hi buddy @zefang

What kind of logic been used in macro, buddy
Only to close file A or has some other stuffs
Cheers @zefang

Hi @zefang

Use message box inside macro and check that macro is executed or not

Thanks
Ashwin.S

this doesnt work. it just kept asking if the file is to be replaced

?? what do you mean