Compile error when opend from other PC

C

Corey

I have quite a complex VB Excel file with many macros and Forms.
All works great on my PC, but when the file is opened from another users PC it immediately comes up
with a Copile error. Cannot find Library etc.

The VB line highlighed is :
Sheet1.Range("C16").Value = Format(Now, "mmmm yy")
With the [Format] Highlighted.

If i click OK, and try to run a macro i then get another Compile error.

Is there a way to fix this?
Both PC's re running Office XP and have ALL Excel components installed.

Corey....
 
G

Guest

You have a library referenced on your PC that is not available on the other
PC, you may not even be using anything from this library but it will create
this error.

Reset yout VBA project and then go to TOOLS -> REFERENCES and the
unavailable libraries will have something in braces after it, I can't remeber
exactly what but it will be obvious when you see it, uncheck the library on
the users pc and all should be well.

You should then uncheck these on your PC and re save the file. This should
prevent this happening on other machines.

hth

Mark
 
C

Corey

Thanks mark.
Done the trick.

I've just remembered it says (MISSING) in the braces, funny that isn't it.
 

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