Share via

COM timeout Excel

Anonymous
2024-04-23T11:21:57+00:00

Microsoft 465 Excel version 2403.

C# application (WPF on .Net 8) using excel COM interop ("automation") which adds a menu in the Excel application and setsup a click handler (in WPF).

All works normally just fine, but when debugging and say dwelling a couple of minutes (1.5 to be more specific) at a breakpoint in the click handler code, Excel pops up a Ok/Cancel dialogbox stating "Microsoft excel is waiting for another application to complete an OLE action".

if I continue my code with this box still not Ok'ed or Cancelled (which is quite easily happening), the next call to Excel, e.g. Microsoft.Office.Interop.Excel.Application.ScreenUpdating = false; this call throws a COMException (0x800AC472).

If the dialog was closed before proceeding handler code all is fine.

This seems to happen with "all" calls to Excel while dialogbox is open (Ok, I haven't tested with all calls of course, but some).

This upsets my debugging session and I would like Excel to not behave like this, at least something which could be compiled only when debug mode.

Anyone have some hints?

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2024-04-23T13:05:14+00:00

I‘d suggest you create a new thread in Office Development which is special channel to handle such issue.

Office Development - Microsoft Q&A

Thank you for your understanding.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2024-04-24T07:29:38+00:00

    Was this answer helpful?

    0 comments No comments