Excel Error Codes

Fix Excel 2013 VBA Error 429 When Creating a Word Application Object

Muhammad TalhaMuhammad Talha Nov 27, 2026 868 views

Question details

Resolve error 429 when Excel VBA tries to create a Word.Application object.

Fix Excel 2013 VBA Error 429 When Creating a Word Application Object
Product
Microsoft Excel 2013 VBA and Microsoft Word
Device & OS
not provided
Scenario
An Excel macro automates Word and works when stepped through but fails during normal execution.
Observed behavior
Excel reports “Run-time error 429: ActiveX component can't create object” when creating a Word.Application object.
Before you start

Identify the VBA line that raises error 429 and confirm that Microsoft Word is installed and opens normally. In the VBA editor, review Tools > References for any entries marked MISSING.

Solution 1Recommended

Reuse a Running Word Instance and Qualify Excel Objects

Use this approach when the macro creates Word repeatedly or terminates Word processes before automation.

Try to attach to an existing Word instance before creating one. Retain the resulting object reference for the work that follows, and do not terminate all Word processes.

Stepping through code can change its timing, so success in the debugger alone does not establish the cause of error 429.

1
Require variable declarations

In Excel, press Alt+F11 to open the VBA editor, open the relevant module, and add Option Explicit at the top. Declare variables such as Dim wordApp As Object and Dim dataRange As Excel.Range.

2
Qualify Excel references

In the macro, identify Excel objects explicitly, for example: Set dataRange = ThisWorkbook.Worksheets("Sheet1").Range("A1"). Replace Sheet1 and A1 with the worksheet and range used by your code.

3
Attach to or create Word

Replace the Word initialization block with: On Error Resume Next Set wordApp = GetObject(, "Word.Application") On Error GoTo 0 If wordApp Is Nothing Then Set wordApp = CreateObject("Word.Application") End If Use wordApp for subsequent Word operations instead of creating another application object.

4
Compile and test the macro

Choose Debug > Compile VBAProject in the VBA editor, correct any reported errors, and run the macro normally. If CreateObject still raises error 429, check the Word installation and registration.

Reuse a Running Word Instance and Qualify Excel Objects
Preserve the user's Word session: Do not call wordApp.Quit on an instance the macro attached to unless closing it is intended. Track whether your macro created the instance if it needs to close Word afterward.
Free Microsoft Office alternative

Work with Spreadsheets and Documents in WPS Office

WPS Office is a free, lightweight alternative with a familiar interface for working across spreadsheets and documents. Its Microsoft Office format compatibility can make moving everyday files straightforward. It does not repair Microsoft Word automation or guarantee compatibility with Excel VBA macros.

Work with spreadsheets and documents in one office suiteOpen and edit Microsoft Excel and Word formats, including XLSX and DOCXUse a familiar interface that makes it easier to move from Microsoft OfficeGet a free, lightweight option for everyday office tasks
microsoft office alternative - wps office

Frequently Asked Questions

Why does the macro work when I step through it but fail when I run it?

Stepping through changes the timing of the macro and may hide a timing or initialization issue. Use Debug in the VBA editor to identify the failing line, then check how the Word application object is obtained and reused.

What is the difference between GetObject and CreateObject for Word?

GetObject(, "Word.Application") attempts to attach to a running Word instance. CreateObject("Word.Application") attempts to create a new instance. Handle a failed GetObject call before trying CreateObject.

Do I need a Word reference in Tools > References?

A Word object library reference is needed for Word-specific declared types such as Word.Application. If you declare the variable As Object and use CreateObject, that Word reference is not required for the late-bound code.

Should the macro close Word after it finishes?

Close Word only if that is intended. If the macro attached to an existing instance using GetObject, calling Quit could close the user's Word session. Track whether the macro created the instance before deciding to quit.