Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

References in VBA editor not opening

Tags:

excel

vba

I am getting an error saying "Can't find project or library" error message when I try to run a VBA project. I am trying to go into the References to see if there is something there that is causing an issue, but when I click on it, it does nothing.

Any suggestions?

like image 905
BH57 Avatar asked Sep 27 '17 21:09

BH57


People also ask

How do I enable References in VBA?

Add A Reference Make sure that you click on the workbook you want to add the reference to, and from the VBA editor menu choose Tools -> References. In the displayed list check the box beside your renamed add-in, and then click on OK. You'll see that your workbook now has a new reference to the add-in.

How do I open a VBA reference in Excel?

From the Tools menu, choose References to display the References dialog box. The References dialog box shows all object libraries registered with the operating system. Scroll through the list for the application whose object library you want to reference.

How do I fix missing References in VBA?

First, you should try the Detect And Repair option on the Help menu. After this has run, close Excel and reopen it and look at the References dialog in VBA. If there are no missing references, then Detect And Repair worked successfully.

How do I open the References dialog box in Excel?

On the Tools menu, click References to display the References dialog box. You see that Refme.


2 Answers

This worked for me - a. Copy/paste the problematic file to a new location. The error seems to be resolved in the file in the new location. b. Delete the problematic file in the original location (optional) c. Copy/paste the corrected file back to the original location.(optional)

like image 128
Sharan Nair Avatar answered Dec 06 '22 12:12

Sharan Nair


I also managet to fix it by disabling all macros, saving the file, and then enabling them from the "Macro Security" in the Developer tab.

like image 43
kristiantonev Avatar answered Dec 06 '22 12:12

kristiantonev