Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBE6.DLL Can't Find Project or Library

Status
Not open for further replies.

Tolco

Technical User
Feb 24, 2006
3
CA
Outlook 2003 SP2

I have a reference to VBA (VBE6.dll) and the object browser finds the reference to string functions such as chr() and left(). However, when I execute the code I get a compile error "Can't Find Project of Library" for the Chr() function.

This is a brand new Dell laptop and I have double checked that files are where they are supposed to be and The file is not corrupt.

Code works fine on Outlook 2002 on several machines.
 
Double check the references:
when in VBE (Alt+F11) menu Tools -> References ...

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
I had checked the Tools/Referneces and VBA is the first priority, it points to \Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6.dll and that library does exist, it is the latest version
 
No missing reference ?
Did the project compiles properly ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
There are no missing references (if it was missing the dialog box would warn me) and other code within VBAProject.otm executes okay as long as they do not use a string function.

However, I noticed 2 references to the same .dll (the 2nd was MS VBA Extensibility 5.3). When I removed this reference, the code finally compiled.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top