Compile error, cannot find the project or library

Son

Active Member
Joined
Mar 19, 2010
Messages
284
i have a workbook with many worksheets and many macros. All are running perfectly in my pc and some other pcs of the company. But, when this file is processed in certaing pcs and when the users send me the file back by email, then i cannot run my macros. So, it seems that there is a compatibility problem between pcs and/or version of excel maybe.

When i checked with one of the users that i had compaitibility problems with, it seems that we both use exel 2003 and windows XP prof. So, i cannot understand what more i should look for when searcing for the cause of incompatibility.

Also, when i email the user back with the file that i cannot use in my pc, he reports that he's able to use it and run the macros in his pc.

And now when i save the file to my pc, it says that there is a problem loading the dll, and does not even open the modules.

When looking at it further, i first thought that my compatibility problem was just due to undeclared variables, so i put option explicit at the start of one of the modules, to identify the undeclared variables, an tried to debug the file directly from the email, without saving to my pc. But still it says:

"compile error, cannot find the project or library"

and it identifies Left, in the following code line (where aa is declared as string):

If (Left(aa, 1) = "A") Then
.........
End if

Do you have any ideas on what could be causing the problem and how i should proceed so that i could fix it? Any thoughts will be greately appreciated!!!
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
I can think of 2 likely causes for this issue....

1. Missing References.
In the VBA window, click Tools - References.
Look for anything that says Missing.
And either uncheck it, or install whatever is missing.

2. You have a Function/Macro or Variable named Left.
Remove/rename it.
 
Upvote 0
ok, so i went to Tools/References and it says i'm missing
Missing: RefEdif Control
located in c:\program files\MS office\office11\REFEDIT.DLL

and now what? do i just uncheck the box of the missing reference, or do i need to do something more?
 
Upvote 0
ok, i just unticked and now it seems to be working fine!!!

do you know if by unticking i have i solved it for good, or the next time they will email me their file i will need to do the same thing again?
 
Upvote 0
it's strange though, because in the location that the dll should be missing, i find a file named refedit.dll ver 1.0.0, so it should be working... anyway... we'll see if the problem persists
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top