PC Review


Reply
Thread Tools Rate Thread

Compile error when opend from other PC

 
 
Corey
Guest
Posts: n/a
 
      2nd Apr 2007
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....


 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWFyayBEdWxsaW5naGFt?=
Guest
Posts: n/a
 
      2nd Apr 2007
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

"Corey" wrote:

> 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....
>
>
>

 
Reply With Quote
 
=?Utf-8?B?TWFyayBEdWxsaW5naGFt?=
Guest
Posts: n/a
 
      2nd Apr 2007
I've just remembered it says (MISSING) in the braces, funny that isn't it.

"Corey" wrote:

> 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....
>
>
>

 
Reply With Quote
 
Corey
Guest
Posts: n/a
 
      2nd Apr 2007
Thanks mark.
Done the trick.

"Mark Dullingham" <(E-Mail Removed)> wrote in message
news:C6C065A0-B627-4F4D-9B76-(E-Mail Removed)...
I've just remembered it says (MISSING) in the braces, funny that isn't it.

"Corey" wrote:

> 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....
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Useraccounts can't be opend sven.daems@gmail.com Windows XP Help 3 19th Feb 2006 11:29 AM
VBAProject name compile error, not defined at compile time Matthew Dodds Microsoft Excel Programming 1 13th Dec 2005 07:17 PM
Excel 2003 file opend in Excel 2000 - Compile error in hidden modu =?Utf-8?B?QmhhdmRlZXBTYWNoZGV2?= Microsoft Excel Programming 3 29th Nov 2005 08:04 PM
closing an opend application Sam Microsoft Access 9 14th Jan 2005 02:02 PM
The custom form could not be opend mario savard Microsoft Outlook Discussion 3 4th Oct 2004 07:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:11 PM.