Unexplained "Automation error Exception occurred" from Excel

Anonymous
2022-07-27T20:20:04+00:00

I'm getting "Automation error Exception occurred" (+ crash) from Excel 2016 for all macros for all workbooks. Started happening some time in the last week (same code worked fine last week)

I created a test case, empty workbook with a single module.


Option Explicit

Option Base 1

Public Sub DoIt()

MsgBox "Done" 

End Sub


If I run it with F5 from inside the VBA editor, it works fine.

If I run it from Developer > Macros > DoIt, error + crash.

I tried doing a "repair" of my office installation, no change.

Thoughts?

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
{count} votes
Answer accepted by question author
  1. Anonymous
    2022-12-01T17:58:33+00:00

    Here's the solution (since my problem hadn't gone away).

    • Open the VBA editor (Alt + F11)
    • Tools > References
    • check-mark "AccessibilityCplAdmin 1.0 Type Library"
    • SAVE
    • (close and reopen Excel)

    I learned this in Stack Overflow and it worked like a charm.

    155 people found this answer helpful.
    0 comments No comments

13 additional answers

Sort by: Most helpful
  1. Anonymous
    2022-12-23T02:58:16+00:00

    I could solve it by saving it under another name (place)

    0 comments No comments
  2. Anonymous
    2023-02-06T09:38:29+00:00

    This did help me. Thanks!

    2 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2023-04-18T16:14:58+00:00

    Here's the solution (since my problem hadn't gone away).

    • Open the VBA editor (Alt + F11)
    • Tools > References
    • check-mark "AccessibilityCplAdmin 1.0 Type Library"
    • SAVE
    • (close and reopen Excel)

    I learned this in Stack Overflow and it worked like a charm.

    This works!! Thank you so much!

    4 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2023-05-02T21:58:49+00:00

    This seems to be working for me.

    Thanks

    1 person found this answer helpful.
    0 comments No comments