How to Fix Excel 2016 Automation Error Crashing Macros
Question details
Users need a solution for Excel 2016 crashing when macros are executed from the Macros dialog box.

- Product
- Microsoft Excel 2016
- Device & OS
- not provided
- Scenario
- Running VBA macros using the standard standard Macros dialog in the Excel interface.
- Observed behavior
- Excel displays an automation error indicating an exception occurred and then crashes, despite the exact same macro running perfectly when triggered via F5 in the VBA Editor.
Before modifying your VBA references, ensure you save a backup copy of your macro-enabled workbook (.xlsm) to prevent any accidental code loss during troubleshooting.
Enable AccessibilityCplAdmin and Fix Missing References
Resolving missing or broken type libraries often prevents automation errors triggered by the Excel interface.
Automation errors in Excel 2016 are frequently caused by missing or unregistered type library references. Enabling specific Windows accessibility libraries or clearing missing references stabilizes the connection between the Excel interface and the VBA runtime.
Press Alt + F11 on your keyboard to launch the Microsoft Visual Basic for Applications editor.
In the top menu bar, click on 'Tools' and select 'References' from the drop-down list.
Scroll through the Available References list and check the box next to 'AccessibilityCplAdmin 1.0 Type Library'.
Look at the items checked at the top of the list. If any reference starts with 'MISSING:', uncheck it or update its file path.
Click 'OK', save your VBA project, close the editor, and restart Excel to verify the macro runs without crashing.

Run the Macro Directly via the VBA Editor
If the automation error persists randomly, bypassing the Excel Macros dialog can serve as a reliable temporary workaround.
Experience Stable Macro Execution with WPS Office
If Excel 2016 continues to crash due to persistent automation errors or reference conflicts, consider switching to WPS Office. It provides a stable, lightweight environment for spreadsheet management with excellent macro compatibility.
- 1. Download and Install: Visit the official WPS website to download and install WPS Office for free.
- 2. Open Your Workbook: Launch WPS Spreadsheets, go to 'Menu' > 'Open', and select your macro-enabled workbook.
- 3. Run Macros Safely: Enable macros when prompted and run your tasks in a stable, optimized environment.

Frequently Asked Questions
What causes an automation error in Excel VBA?
Automation errors typically occur due to corrupted or missing type library references, compatibility issues between different Office versions, unregistered DLL files, or deeply nested broken code that crashes the Excel runtime environment.
How do I identify missing references in Excel VBA?
Open the VBA Editor by pressing Alt + F11, go to Tools > References, and look at the checked items pinned to the top of the list. Any broken or unrecognized library will explicitly have the word 'MISSING:' written next to it.
Does WPS Office support VBA macros?
Yes, WPS Office supports VBA macros. You can run, edit, and create macros with high compatibility to Microsoft Excel's macro environment, making it a reliable alternative for handling .xlsm files.




