Excel VBA Run-Time Error 429 (“ActiveX component can’t create object”) occurs when macro code invokes CreateObject("ProgID") or early-bound object instantiation, but the Windows Component Object Model (COM) subsystem cannot locate, register, or execute the specified server library.
Verify Office and ActiveX Component Bitness Matching
The most frequent trigger is attempting to load a 32-bit legacy ActiveX DLL inside 64-bit Microsoft 365 or Excel:
- In Excel, navigate to File > Account > About Excel to confirm whether 32-bit or 64-bit Office is installed.
- A 64-bit process cannot directly host in-process 32-bit COM servers (such as legacy MSComm, Common Controls, or proprietary third-party libraries).
- If your organisation relies on unported 32-bit DLLs, install the 32-bit edition of Office or rewrite routines using modern 64-bit compliant APIs.
Re-register COM Libraries via Regsvr32
Damaged or missing registry keys in HKEY_CLASSES_ROOT prevent COM server instantiation:
- Press the Windows Key, type cmd, right-click Command Prompt, and select Run as administrator.
- For standard 64-bit components or 32-bit components on 32-bit Windows, execute:
regsvr32 "C:\Windows\System32\scrrun.dll" - For 32-bit components running under 64-bit Windows, register using the SysWOW64 subsystem:
regsvr32 "C:\Windows\SysWOW64\scrrun.dll" - Confirm that the message dialogue reports DllRegisterServer succeeded.
Audit Missing VBA References
Early-bound references flagged as missing will trigger Error 429 upon project compilation:
- Press Alt + F11 in Excel to launch the Visual Basic Editor.
- Navigate to Tools > References.
- Inspect the list for any entry prefixed with MISSING:.
- Uncheck the missing entry, browse to locate the updated library path, or refactor the code to use late-bound
CreateObjectwith defensive error handling.