cancel
Showing results for 
Search instead for 
Did you mean: 

Close instance of Excel

NeerajShekhar_R
Level 3
Hi All,

Do any one have idea why this error at close instance of excel is all about.

system.runtime.interloopservices.invalidComObjectException: COM object that has been separated from its underlying RCW cannot be used.

any help would be great

------------------------------
Neeraj Shekhar Rajput
Developer
Genpact India
Asia/Kolkata
------------------------------
2 REPLIES 2

GeoffHirst
Staff
Staff
Hi Neeraj,

Thank you for using Blue Prism.

The message you are seeing above, usually occurs when Excel has been closed, or quit. Is there any possibility that Excel is quitting before you are trying to close the workbook/worksheet you are working with?

Another area to consider is, do you have multiple instances of Excel running and if so, are you closing the correct one? Please note, these are just general questions, Office automation is a complex and sometimes difficult subject.

Please come back to us if you need any further assistance.

regards

------------------------------
Geoff Hirst
Partner Pre Sales
Blue Prism
------------------------------
Geoff Hirst Senior DX Engineer - Digital Exchange - EMEA SS&C Blue Prism

Thanks,
Geoff Hirst

------------------------------
Neeraj Shekhar Rajput
Developer
Genpact India
Asia/Kolkata
------------------------------