Fix Missing Excel VBA Library Paths in Office 365
Question details
Determine whether Excel VBA library references are broken when their file paths appear inaccessible or nonexistent.

- 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.
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.
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.
In the affected workbook, press Alt+F11 to open the Visual Basic Editor.
Select the workbook's project in the Project Explorer, then choose Tools > References. Look for checked entries labeled MISSING.
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.
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.

Repair Office if a required VBA reference remains broken
Use Office repair when a required Office library is still missing or the installation appears damaged.
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.

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.




