Fix the Microsoft Office 16.0 Object Library Path in Word VBA
Question details
Correct or verify the Microsoft Office 16.0 Object Library reference used by a Word 2019 VBA project.

- 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.
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.
Verify and re-add the Office object library reference
Use the VBA editor to check the library and replace a missing or incorrect reference.
In Word, press Alt+F11 and select the affected project in the Project Explorer.
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.
Choose Tools > References and look for Microsoft Office 16.0 Object Library or an entry marked MISSING. Select the entry to inspect its location.
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.
Choose Debug > Compile in the VBA editor, then run the affected macro from Word or the editor to check whether it works.

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.

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.




