VBA & Macro Problems

How to Fix Excel 2016 Automation Error Crashing Macros

Steven ParkerSteven Parker Oct 28, 2026 868 views

Question details

Users need a solution for Excel 2016 crashing when macros are executed from the Macros dialog box.

How to Fix Excel 2016 Automation Error Causing Macro Crashes
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 you start

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.

Solution 1Recommended

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.

1
Open the VBA Editor

Press Alt + F11 on your keyboard to launch the Microsoft Visual Basic for Applications editor.

2
Access the References Menu

In the top menu bar, click on 'Tools' and select 'References' from the drop-down list.

3
Enable the Required Library

Scroll through the Available References list and check the box next to 'AccessibilityCplAdmin 1.0 Type Library'.

4
Clear Missing References

Look at the items checked at the top of the list. If any reference starts with 'MISSING:', uncheck it or update its file path.

5
Save and Restart

Click 'OK', save your VBA project, close the editor, and restart Excel to verify the macro runs without crashing.

Enable AccessibilityCplAdmin and Fix Missing References
Test with a Clean Workbook: If the error persists after fixing references, test your macro code in a completely new, blank workbook to rule out file corruption.
Free Microsoft Office alternative

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. 1. Download and Install: Visit the official WPS website to download and install WPS Office for free.
  2. 2. Open Your Workbook: Launch WPS Spreadsheets, go to 'Menu' > 'Open', and select your macro-enabled workbook.
  3. 3. Run Macros Safely: Enable macros when prompted and run your tasks in a stable, optimized environment.
Highly compatible with Microsoft Excel formats (.xlsx, .xlsm, .csv).Robust built-in VBA support for running your existing macros smoothly without constant crashes.Lightweight installation with faster load times and minimal system resource usage.Familiar user interface ensuring a seamless migration with zero learning curve.
microsoft office alternative - wps office

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.