VBA & Macro Problems

Fix Missing Excel VBA Library Paths in Office 365

Elise WilliamsElise Williams Nov 25, 2026 869 views

Question details

Determine whether Excel VBA library references are broken when their file paths appear inaccessible or nonexistent.

Fix Missing Excel VBA Library Paths in Office 365
Product
Microsoft Excel for Microsoft 365
Device & OS
Windows 10
Scenario
The user is inspecting VBA references to Office and system libraries, including VBE7.DLL, MSO.DLL, and FM20.DLL.
Observed behavior
Some references appear to point to paths that are difficult to browse or seem not to exist, although the libraries may be installed in protected Office or system locations.
Before you start

Open the affected workbook in Excel and identify which references are marked MISSING before changing anything. Check Excel's architecture under File > Account > About Excel, since library locations vary by installation and bitness.

Solution 1Recommended

Check VBA references before changing library paths

Use the References dialog to distinguish a genuinely broken reference from a path that is simply difficult to browse.

1
Open the VBA editor

In the affected workbook, press Alt+F11 to open the Visual Basic Editor.

2
Inspect references

Select the workbook's project in the Project Explorer, then choose Tools > References. Look for checked entries labeled MISSING.

3
Leave valid references alone

If no required reference is marked MISSING, click Cancel and test the macro. A library path that is hard to browse does not by itself mean the reference is broken.

4
Correct a broken reference

If an entry is marked MISSING, identify the library your project needs. In Tools > References, select the correct installed reference if it is available; use Browse only when you know the correct file and version for your Excel installation.

Check VBA references before changing library paths
Do not manually register Office libraries: Do not use regsvr32 to register these Office libraries. Paths vary by Office version and architecture; for some 32-bit installations, libraries may be under Common Files or Windows\SysWOW64.
Free Microsoft Office alternative

Work with spreadsheets in WPS Office

WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and Microsoft Office format support for an easier transition. It does not repair Microsoft Excel VBA references, and macro compatibility may vary.

Open and edit spreadsheets in a familiar interfaceWork with Microsoft Excel XLS and XLSX formatsUse a free, lightweight office suiteMove everyday spreadsheet work without changing Excel's VBA library references
microsoft office alternative - wps office

Frequently Asked Questions

How do I know whether an Excel VBA reference is actually broken?

Press Alt+F11, select the workbook's project, and open Tools > References. A checked entry labeled MISSING indicates a broken reference; an unfamiliar or inaccessible-looking path alone does not.

Where can I check whether Excel is 32-bit or 64-bit?

In Excel, open File > Account > About Excel. The dialog identifies the installed Excel architecture, which affects compatible components and possible library locations.

Should I use regsvr32 for VBE7.DLL, MSO.DLL, or FM20.DLL?

No. Do not manually register these Office libraries with regsvr32. Check Tools > References in the VBA editor and repair Office if a required Office reference is broken.

What if Office repair does not restore a missing reference?

Check the library name in Tools > References. If it belongs to a separately installed application or component, reinstall the appropriate version for your Excel architecture, then check the reference again.