VBA compile error can't find project or library

VBA compile error can't find project or library

Anonymous
Not applicable
3,910 Views
5 Replies
Message 1 of 6

VBA compile error can't find project or library

Anonymous
Not applicable

We recently started getting error when running dvb file from our script in Autocad 2019 after we uninstalled Autocad 2017 and VBA 2017 from our machines. We have uninstalled older versions Autocad 2017 VBA 2017 Advance Steel 2017 and have Autocad 2019 VBA 2019 Advancesteel 2019 installed. It did not error when 2017 and 2019 both were installed on the machine. See attached for more details. Any help how to resolve this error will be a great help. 

0 Likes
Accepted solutions (2)
3,911 Views
5 Replies
Replies (5)
Message 2 of 6

Ed__Jobe
Mentor
Mentor
Accepted solution

It's likely that you still have a reference to a 2017 tlb. Go to the VBAIDE , Tools menu> References and look for one that says "MISSING*". Uncheck it and find the replacement tlb for 2019.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

Message 3 of 6

Anonymous
Not applicable
Accepted solution

Thank you

0 Likes
Message 4 of 6

jeremye86
Advocate
Advocate

Ed,  Would you know a fix if if the reference library is not missing and getting the compile error saying "cant find project or library"?image.pngimage.png?

 

 

0 Likes
Message 5 of 6

Ed__Jobe
Mentor
Mentor

Note that the library above the one you have selected is MISSING. If you have even one library missing, that error can pop up on other library's object types. Fix the error first and do Debug menu>Compile.

 

BTW, your ojbcollection variable is ambiguous. The name doesn't indicate what kind of collection it is. I would suggest "colBlkRefs" or something similar.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 6 of 6

jeremye86
Advocate
Advocate

Thanks Ed! that worked.  

0 Likes