Share via

Excel 365 VBA Library not found -> Tools-References are greyed out

Ulrich Duerr 0 Reputation points
2026-01-12T10:16:20.42+00:00

Excel VBAs do not work in new Office 365 environment. Error mesage is "missing library". The tab tools-> references is greyed out. The VBA7.dll exists in the .../Microsoft Shared./... folder, which is not exactly the same as in my other setups. VBA works for MS Access. Any idea what i can do ?

Developer technologies | Visual Basic for Applications
0 comments No comments

2 answers

Sort by: Most helpful
  1. Susmitha T (INFOSYS LIMITED) 2,690 Reputation points Microsoft External Staff
    2026-01-12T12:34:48.7133333+00:00

    Thank you for reaching out!

    This issue occurs when Excel's VBA component is not properly installed or registered in Microsoft 365. Please run Microsoft 365 -> Change -> Online Repair and ensure Visual Basic for Application is enabled.

     After repair or reboot, Open Excel VBA and verify Tools -> Reference is available.

     

     

    Let me know if you need any further help with this. I will be happy to assist.
    If you find this helpful, Kindly mark the provided solution as "Accept Answer", so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.


  2. Q&A Assist
    2026-01-12T10:17:32.18+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    It sounds like you're encountering a common issue with missing references in VBA for Excel 365. When the Tools -> References menu is greyed out, it typically indicates that there is a problem with the environment or the way the application is set up. Here are some steps you can take to resolve the issue:

    1. Check for Missing References: Although the references dialog is greyed out, you can still check for missing references by trying to compile the code. If there are missing libraries, you will usually see an error message indicating which library is missing.
    2. Repair Office Installation: Sometimes, repairing the Office installation can resolve issues with missing libraries. You can do this through the Control Panel by selecting Microsoft Office and choosing the repair option.
    3. Re-register the VBA DLL: You might want to try re-registering the VBA7.dll file. You can do this by running the Command Prompt as an administrator and using the command regsvr32 VBA7.dll. Ensure you navigate to the directory where the DLL is located.
    4. Check for Updates: Ensure that your Office 365 installation is up to date. Sometimes, updates can fix bugs related to VBA functionality.
    5. Create a New Module: If the issue persists, try creating a new module in the VBA editor and see if you can access the references dialog from there.
    6. Contact Support: If none of the above solutions work, consider reaching out to Microsoft support for assistance, especially since VBA works in MS Access, indicating that the issue might be specific to Excel.

    By following these steps, you should be able to troubleshoot the missing library issue in Excel 365.


    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.