0x800A9C68 Error in Macro execute

Hi ,

I am running a macro inside my excel app scope. My macro is working fine and generating desired output. However , after processing I get below error always . Please help

@ClaytonM @PrankurJoshi

macro has thrown an exception

Message: Exception from HRESULT: 0x800A9C68

Source: Execute Macro

Exception Type: COMException

System.Runtime.InteropServices.COMException (0x800A9C68): Exception from HRESULT: 0x800A9C68
at UiPath.Excel.Activities.ExecuteMacro.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

Try after closing all the opened excels in your machine.

If you still having the same issue, --> then remove workbook.close in your macro code.
Let me know if these resolve your issue :slight_smile:

Hi, everything gets closed. And Worrkbok.close is also removed. Still same issue

Did someone find the solution for this?

any solution for this?