Office Apps Not Opening

Fix Visual FoxPro Not Creating a Word 2013 Application Object

Khadija KhanKhadija Khan Nov 25, 2026 868 views

Question details

Restore the ability to create a Word application object from Visual FoxPro.

Fix Visual FoxPro Not Creating a Word 2013 Application Object
Product
Microsoft Word 2013 and Visual FoxPro
Device & OS
Windows 10
Scenario
Visual FoxPro code automates Word using CREATEOBJECT("Word.Application") after an upgrade from Windows 8.1.
Observed behavior
Visual FoxPro cannot create the Word 2013 application object after the Windows 10 upgrade.
Before you start

Confirm that Word 2013 opens normally from the Start menu and record the exact error shown when Visual FoxPro creates the object. If Excel 2013 is available, use it to test Word automation outside FoxPro.

Solution 1Recommended

Test Word Automation from Excel VBA

Use this test to determine whether Word can be created by another Office application.

1
Open the VBA editor

Open Excel, press Alt+F11, and select View > Immediate Window.

2
Create the Word object

In the Immediate window, enter Set objWord = CreateObject("Word.Application") and press Enter. Note any error message.

3
Check the result

If the command succeeds, enter objWord.Visible = True to check that Word opens. Then enter objWord.Quit to close the test instance.

Test Word Automation from Excel VBA
Interpret the test: If Excel also fails, investigate Word installation or COM registration. If Excel succeeds, investigate the FoxPro environment and configuration; the result alone does not identify the cause.
Free Microsoft Office alternative

Work with Word Documents in WPS Office

WPS Office is a free, lightweight alternative with a familiar interface and support for Microsoft Office formats, making it easy to move everyday document work. It does not repair Word COM registration or guarantee compatibility with Visual FoxPro automation.

Open and edit Microsoft Word DOC and DOCX filesContinue everyday document editing outside WordUse familiar document-editing toolsWork with a free, lightweight Office alternative
microsoft office alternative - wps office

Frequently Asked Questions

Does Visual FoxPro need Set before CREATEOBJECT?

The Set keyword in Set objWord = CreateObject("Word.Application") is VBA syntax. In Visual FoxPro, use its own assignment syntax, such as objWord = CREATEOBJECT("Word.Application").

What does it mean if Excel cannot create the Word object either?

It suggests the problem may extend beyond FoxPro. Check whether Word opens from the Start menu, repair Office through Control Panel > Programs and Features, and review the error and Process Monitor trace.

Must Word and Visual FoxPro have the same bitness?

Not necessarily. Visual FoxPro is 32-bit, while Word is an out-of-process COM server that can generally be automated across bitness. Record the Office version and bitness when troubleshooting, but do not assume a mismatch is the cause.

Can WPS Office fix Word's COM registration?

No. Repair Microsoft Office to address a Word installation or registration problem. WPS Office can open and edit Word documents, but it is not guaranteed to replace Word in a Visual FoxPro automation workflow.