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!!!
 
you lost me...
where do i do that? from the start/run?
because when i do that it does not find the file
 
Upvote 0

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Yes, from Start - Run

You may need to add the path..

regsvr32 C:\Windows\...\...\refedit.dll

whatever the path is to where you found the file on your pc.
 
Upvote 0
well, it said that it concluded successfully, and i'll try to reboot now, because it doesnt seem to be workign so far - will let you know
 
Upvote 0
so far we have this:
i successfully untick the file directly from the email. and then it runs ok, even when saved in my pc!

if i try to open a file that had been saved to my pc but was not working and i had not unticked the missing dll, then it still says: error loading dll.

so, i guess that i should untick each time when i receive the email, before saving the file to my pc. This is quite acceptable, than having to recreate the whole file from scratch!!!

thank you very much for all your help!!!
 
Upvote 0
It might be acceptable but that behaviour isn't normal!

Try Detect and Repair from the Help menu in Excel.
 
Upvote 0
detect and repair, yes, i've tried it and it's not working either.

anyway, thanks again for all your support and help, i so much appreciate it!!!
 
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