VBA & Macro Problems

Fix the Microsoft Office 16.0 Object Library Path in Word VBA

Bushra ParveenBushra Parveen Nov 18, 2026 869 views

Question details

Correct or verify the Microsoft Office 16.0 Object Library reference used by a Word 2019 VBA project.

Fix the Microsoft Office 16.0 Object Library Path in Word VBA
Product
Microsoft Word 2019 VBA
Device & OS
Windows; version not provided
Scenario
A Word VBA project references the Office object library, but the displayed MSO.dll path appears to be obsolete.
Observed behavior
The library reference points to an old location, while MSO.dll may be installed under the Office root vfs directory.
Before you start

Open the affected document in Word and note any reference marked MISSING in the VBA editor. Locate the installed MSO.dll in File Explorer, as its path can differ by Office installation.

Solution 1Recommended

Verify and re-add the Office object library reference

Use the VBA editor to check the library and replace a missing or incorrect reference.

1
Open the VBA editor

In Word, press Alt+F11 and select the affected project in the Project Explorer.

2
Inspect the Office library

Choose View > Object Browser, then select Office from the All Libraries list. Check the library information and displayed location, if available; the library may appear simply as Office.

3
Check project references

Choose Tools > References and look for Microsoft Office 16.0 Object Library or an entry marked MISSING. Select the entry to inspect its location.

4
Re-add the reference

If the reference is missing or incorrect, clear its checkbox and select the available Microsoft Office 16.0 Object Library entry. If necessary, click Browse and select the installed MSO.dll, then click OK.

5
Test the project

Choose Debug > Compile in the VBA editor, then run the affected macro from Word or the editor to check whether it works.

Verify and re-add the Office object library reference
MSO.dll location varies: One possible location is C:\Program Files (x86)\Microsoft Office\root\vfs\ProgramFilesCommonX86\Microsoft Shared\OFFICE16. Use the file from your own Office installation rather than assuming this path applies.
Free Microsoft Office alternative

Work with Word documents in WPS Office

WPS Office is a free, lightweight Office alternative with a familiar interface and support for common Word formats, making it easy to move everyday document work. It does not repair Microsoft Office VBA references.

Open and edit documents in a familiar word-processing interfaceCompatible with common Microsoft Word formats, including DOC and DOCXFree, lightweight tools for everyday document workMove between Office applications and WPS with familiar document formats
microsoft office alternative - wps office

Frequently Asked Questions

Why does the library appear as Office in the Object Browser?

The Object Browser can show the Microsoft Office object library under the shorter name Office. Open View > Object Browser and select Office from the All Libraries list to inspect it.

Where can I find the installed MSO.dll?

Check your Microsoft Office installation in File Explorer. Some installations place it under an Office root\vfs directory, but the exact path depends on the installation.

What does MISSING mean in VBA references?

A MISSING entry in Tools > References means VBA cannot resolve that reference. Clear the missing entry and select the correct installed library, or use Browse to locate it.

Does WPS Office fix the Word VBA library reference?

No. The reference belongs to Microsoft Office and should be checked in Word's VBA editor. WPS Office can be used as an alternative for everyday document editing.