System.Runtime.InteropServices.COMException :- HRESULT:0x80020009

Hi,

While executing macro in UiPath, I am facing the following error :-

Message: Exception Occurred. (Exception from HRESULT:0x80020009(DISP_E_EXCEPTION))

Exception Type: System.Runtime.InteropServices.COMException

Please guide me through this.
Thanks in advance

Hi @isha.bhatnagar,

Is this for a macro in Excel?
Can you post your macro please?

Thanks

Hi,

Thanks for the response.
This issue is resolved.
It was due to an excel file which was not closed by macro. I have edited macro code to close excel. This worked.