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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Can't find Project or Library!" in Windows 98 only. 2

Status
Not open for further replies.

tatochka

Programmer
May 3, 2001
49
US
I work on VBA Excell application. I don't get this error message on my Windows 95 machine, but I do get it on Windows 98 machine. The debug points to the simple VBA code with Left() function highlited:

If Not Left(MyControl.Name, 3) = "txt" .

If I comment this line, I get this message on the next VBA function, like Right(), Format and so on...
I have the same version of VB and all other 3rd parties controls installed on both machines.
Does anybody have any idea what the problem is? I appreciate any help.
 
Check your References (Tools-->References).
Most likely there is one DLL not referenced on the machine giving you the error.
 
It is more likely to be a DLL not correctly registered as these functions are pretty fundamental to VBA.
Ensure that all DLLs are correctly registered. Difficult to say which one though :-((
Use REGSVR32 to un-register them and then re-register them. I had a similar problem a few months ago and found it to be the FM20.DLL (Microsoft Forms).

M :)
 
Thanks to everybody. That's what it was. One of dll was missing, but the debugging in VBA is really missleading.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top