Project or Library missing

G

Guest

I have a program that works fine on some of our laptops and not on others.
When the routine is run on the ones that don't work I get the message

Compile Error

Can't find project or library

The command line causing the problen reads:

str = Right(str, Len(str) -1)

The highlight is on the word Right.

When this happened in the past I was:

In the VBIDE, go into Tools>References, and if there re any items marked as
MISSING, uncheck them.

But this time there arent any marked as MISSING.

Anybody got any other ideas?
 
D

david.ritchie.au

I have a program that works fine on some of our laptops and not on others.
When the routine is run on the ones that don't work I get the message

Compile Error

Can't find project or library

The command line causing the problen reads:

str = Right(str, Len(str) -1)

The highlight is on the word Right.

When this happened in the past I was:

In the VBIDE, go into Tools>References, and if there re any items marked as
MISSING, uncheck them.

But this time there arent any marked as MISSING.

Anybody got any other ideas?

Have you tried using the Debug | Compile option ?
Otherwise you could export the module code to a text file, delete it
from the project, and re-import it. Highlight the module in the
Project Explorer, use File | Remove <modulename>, reply Yes to save it
somewhere safe, then use File|Import to get it back. This may clear
out the bogus reference information. Don't forget to recompile as
well.
 
G

Guest

Check after the error occurs.

You might have to hit the reset button before doing Tools=>References.

Also make sure that the problematic workbook is the activeproject in the VBE
to make sure you are looking at the references associated with this workbook.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top