Hi, I would like to know if anyone has ever tried working with an already open excel file.
Indeed, I have to use a web application which itself opens the excel file.
The “Excel Application Scope” activity does not work because it answers that the file is already open.
It is Excel 2010 version.
It is a web application that opens the application and I tried Excel Application Scope activity from UiPath.Excel.Activities v2.9.3.
And the result is : Excel Application Scope: Failed opening the Excel file \oat-gass-pp.intra.groupama.fr\DavWWWRoot\OATProsAuto.xlsb. Possible reasons: the file is corrupt, the file is already used by another process or you don’t have permissions to open the file.
Is there a way to work with open excel file please? My robot cannot open itself
Thanks for trying to help me @Srini84 .
Unfortunately I cannot do this. This excel workbook is locked and can only be launched from this web application.
If I kill it and reopen it it is corrupted and unusable.
It’s a tricky problem, isn’t it?
This should allow you to get Microsoft.Office.Interop.Excel.Application of the running excel app started from the web application, which could be then used in ExcelApplicationScope
But do not ask me how to addapt it to your specific needs - I have no idea
I found that if you try access in UiPath using “Excel Application Scope” activity an excel file which is already open (using exactly the same path) then UiPath works with the one open => no need of extra handling.
If you access the same file but from different path (e.g. network drive mapped under different drive letter) it will fail with error you described above.
@Srini84 thank you that was interesting but did not work with opened xlsb file. However I keep that code in my toolbox
@J0ska with your help, I found a solution. I send ctrl+s on my xlsb file to save it into xlsm file.
Then I use your magic code to catch it as a WorkbookApplication variable.
Finally I can use it as a common Excel file, it works so fine