PC Review


Reply
Thread Tools Rate Thread

'Can't find project or library' error

 
 
BRG
Guest
Posts: n/a
 
      4th Dec 2008
Hello,

I have developed an application that runs without problems on a number of
machines, but I keep getting a 'Can't find project or library' error on one
machine. The only difference between the machines that I can find is that
the problem one is running Excel 2003, SP2 as opposed to the others which are
running Excel 2003 SP3.

When the error occurs a variable name is always highlighted, and explicitly
defining the variable fixes the problem. Another application I have
developed without explicitly defining all variables works on the problem
machine. Another difference between the applications is that the problem one
uses an add in called 'XY Chart Labeller'. I'd rather not have to go through
all of the code and explicity define all variables. Any ideas on another way
to fix this would be greatly appreciated.

--
BRG
 
Reply With Quote
 
 
 
 
Peter T
Guest
Posts: n/a
 
      4th Dec 2008
Sounds like a missing reference problem (look in Tools, References), and/or
a project that was developed in a later version being used in an earlier
version.

> When the error occurs a variable name is always highlighted, and
> explicitly
> defining the variable fixes the problem.


What is the variable type and what do you mean be explicitly defining fixes
it.

It's highly unlikely that the addin 'XY Chart Labeller' is implicated.

Regards,
Peter T

"BRG" <(E-Mail Removed)> wrote in message
news:20C968A5-C14C-4631-A08B-(E-Mail Removed)...
> Hello,
>
> I have developed an application that runs without problems on a number of
> machines, but I keep getting a 'Can't find project or library' error on
> one
> machine. The only difference between the machines that I can find is that
> the problem one is running Excel 2003, SP2 as opposed to the others which
> are
> running Excel 2003 SP3.
>
> When the error occurs a variable name is always highlighted, and
> explicitly
> defining the variable fixes the problem. Another application I have
> developed without explicitly defining all variables works on the problem
> machine. Another difference between the applications is that the problem
> one
> uses an add in called 'XY Chart Labeller'. I'd rather not have to go
> through
> all of the code and explicity define all variables. Any ideas on another
> way
> to fix this would be greatly appreciated.
>
> --
> BRG



 
Reply With Quote
 
BRG
Guest
Posts: n/a
 
      4th Dec 2008
The tool was developed using Excel 2003 SP3, is this likely the problem? Is
there any way to fix this (other than updating to SP3)?

What am I looking for in References? The tool is entirely in Excel, doesn't
have any references or import any data from any other applications, and I
have the VBA and Excel 11.0 object library selected.
--
BRG


"Peter T" wrote:

> Sounds like a missing reference problem (look in Tools, References), and/or
> a project that was developed in a later version being used in an earlier
> version.
>
> > When the error occurs a variable name is always highlighted, and
> > explicitly
> > defining the variable fixes the problem.

>
> What is the variable type and what do you mean be explicitly defining fixes
> it.
>
> It's highly unlikely that the addin 'XY Chart Labeller' is implicated.
>
> Regards,
> Peter T
>
> "BRG" <(E-Mail Removed)> wrote in message
> news:20C968A5-C14C-4631-A08B-(E-Mail Removed)...
> > Hello,
> >
> > I have developed an application that runs without problems on a number of
> > machines, but I keep getting a 'Can't find project or library' error on
> > one
> > machine. The only difference between the machines that I can find is that
> > the problem one is running Excel 2003, SP2 as opposed to the others which
> > are
> > running Excel 2003 SP3.
> >
> > When the error occurs a variable name is always highlighted, and
> > explicitly
> > defining the variable fixes the problem. Another application I have
> > developed without explicitly defining all variables works on the problem
> > machine. Another difference between the applications is that the problem
> > one
> > uses an add in called 'XY Chart Labeller'. I'd rather not have to go
> > through
> > all of the code and explicity define all variables. Any ideas on another
> > way
> > to fix this would be greatly appreciated.
> >
> > --
> > BRG

>
>
>

 
Reply With Quote
 
Peter T
Guest
Posts: n/a
 
      4th Dec 2008
First thing to do is, in the machine that's giving the problem look in Tools
References for any reference marked as MISSING and uncheck.

Re SP3, if you mean and subsequently deployed in SP2 I'm not sure. Probably
not at issue but it just might be, depending on what has been used. One way
to find out would be to rebuild the project in the older system. Export all
the code modules to file and reimport to a new project (you can export from
the problematic file, ie can do all within the same system).

Why not answer the two questions I asked last time in case that sheds any
light.

Regards,
Peter T


"BRG" <(E-Mail Removed)> wrote in message
news:0CC354F2-7E9D-406D-A8EC-(E-Mail Removed)...
> The tool was developed using Excel 2003 SP3, is this likely the problem?
> Is
> there any way to fix this (other than updating to SP3)?
>
> What am I looking for in References? The tool is entirely in Excel,
> doesn't
> have any references or import any data from any other applications, and I
> have the VBA and Excel 11.0 object library selected.
> --
> BRG
>
>
> "Peter T" wrote:
>
>> Sounds like a missing reference problem (look in Tools, References),
>> and/or
>> a project that was developed in a later version being used in an earlier
>> version.
>>
>> > When the error occurs a variable name is always highlighted, and
>> > explicitly
>> > defining the variable fixes the problem.

>>
>> What is the variable type and what do you mean be explicitly defining
>> fixes
>> it.
>>
>> It's highly unlikely that the addin 'XY Chart Labeller' is implicated.
>>
>> Regards,
>> Peter T
>>
>> "BRG" <(E-Mail Removed)> wrote in message
>> news:20C968A5-C14C-4631-A08B-(E-Mail Removed)...
>> > Hello,
>> >
>> > I have developed an application that runs without problems on a number
>> > of
>> > machines, but I keep getting a 'Can't find project or library' error on
>> > one
>> > machine. The only difference between the machines that I can find is
>> > that
>> > the problem one is running Excel 2003, SP2 as opposed to the others
>> > which
>> > are
>> > running Excel 2003 SP3.
>> >
>> > When the error occurs a variable name is always highlighted, and
>> > explicitly
>> > defining the variable fixes the problem. Another application I have
>> > developed without explicitly defining all variables works on the
>> > problem
>> > machine. Another difference between the applications is that the
>> > problem
>> > one
>> > uses an add in called 'XY Chart Labeller'. I'd rather not have to go
>> > through
>> > all of the code and explicity define all variables. Any ideas on
>> > another
>> > way
>> > to fix this would be greatly appreciated.
>> >
>> > --
>> > BRG

>>
>>
>>



 
Reply With Quote
 
BRG
Guest
Posts: n/a
 
      4th Dec 2008
Sorry about that, I saw the > and thought that was the end of your post.

The variable types are varied, the first ones I ran into were 'Commandbar'
and 'CommandBarControl'. Now that those work, I am running into problems
with integer, string, and boolean variables, when giving them an initial
value (ie i = 7) or in 'For Each' loops (ie For Each sh in Sheets).

By explicitly defining them, I mean using a Dim statement (or a Public
statement for a global variable). It seems VB thinks my variable names are
names of objects that it can't find in a library, unless I explicitly define
them as variables.

I'll take a look for anything labeled as MISSING in References. Thanks for
the help!
--
BRG


"Peter T" wrote:

> First thing to do is, in the machine that's giving the problem look in Tools
> References for any reference marked as MISSING and uncheck.
>
> Re SP3, if you mean and subsequently deployed in SP2 I'm not sure. Probably
> not at issue but it just might be, depending on what has been used. One way
> to find out would be to rebuild the project in the older system. Export all
> the code modules to file and reimport to a new project (you can export from
> the problematic file, ie can do all within the same system).
>
> Why not answer the two questions I asked last time in case that sheds any
> light.
>
> Regards,
> Peter T
>
>
> "BRG" <(E-Mail Removed)> wrote in message
> news:0CC354F2-7E9D-406D-A8EC-(E-Mail Removed)...
> > The tool was developed using Excel 2003 SP3, is this likely the problem?
> > Is
> > there any way to fix this (other than updating to SP3)?
> >
> > What am I looking for in References? The tool is entirely in Excel,
> > doesn't
> > have any references or import any data from any other applications, and I
> > have the VBA and Excel 11.0 object library selected.
> > --
> > BRG
> >
> >
> > "Peter T" wrote:
> >
> >> Sounds like a missing reference problem (look in Tools, References),
> >> and/or
> >> a project that was developed in a later version being used in an earlier
> >> version.
> >>
> >> > When the error occurs a variable name is always highlighted, and
> >> > explicitly
> >> > defining the variable fixes the problem.
> >>
> >> What is the variable type and what do you mean be explicitly defining
> >> fixes
> >> it.
> >>
> >> It's highly unlikely that the addin 'XY Chart Labeller' is implicated.
> >>
> >> Regards,
> >> Peter T
> >>
> >> "BRG" <(E-Mail Removed)> wrote in message
> >> news:20C968A5-C14C-4631-A08B-(E-Mail Removed)...
> >> > Hello,
> >> >
> >> > I have developed an application that runs without problems on a number
> >> > of
> >> > machines, but I keep getting a 'Can't find project or library' error on
> >> > one
> >> > machine. The only difference between the machines that I can find is
> >> > that
> >> > the problem one is running Excel 2003, SP2 as opposed to the others
> >> > which
> >> > are
> >> > running Excel 2003 SP3.
> >> >
> >> > When the error occurs a variable name is always highlighted, and
> >> > explicitly
> >> > defining the variable fixes the problem. Another application I have
> >> > developed without explicitly defining all variables works on the
> >> > problem
> >> > machine. Another difference between the applications is that the
> >> > problem
> >> > one
> >> > uses an add in called 'XY Chart Labeller'. I'd rather not have to go
> >> > through
> >> > all of the code and explicity define all variables. Any ideas on
> >> > another
> >> > way
> >> > to fix this would be greatly appreciated.
> >> >
> >> > --
> >> > BRG
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
Peter T
Guest
Posts: n/a
 
      4th Dec 2008
It's always very worthwhile to fully declare variables. However I can't
think of anything that would cause a problem doing simply
i = 7
even if ' i ' had not been declared. Unless perhaps if ' i ' had already
been used as an object variable. Even then it would be a different type of
error.

Are you saying the code breaks on "i = 7" with that highlighted and a msg
saying 'Can't find project or library'

Regards,
Peter T


"BRG" <(E-Mail Removed)> wrote in message
news:A13AF953-C81A-4494-8D46-(E-Mail Removed)...
> Sorry about that, I saw the > and thought that was the end of your post.
>
> The variable types are varied, the first ones I ran into were 'Commandbar'
> and 'CommandBarControl'. Now that those work, I am running into problems
> with integer, string, and boolean variables, when giving them an initial
> value (ie i = 7) or in 'For Each' loops (ie For Each sh in Sheets).
>
> By explicitly defining them, I mean using a Dim statement (or a Public
> statement for a global variable). It seems VB thinks my variable names
> are
> names of objects that it can't find in a library, unless I explicitly
> define
> them as variables.
>
> I'll take a look for anything labeled as MISSING in References. Thanks
> for
> the help!
> --
> BRG
>
>
> "Peter T" wrote:
>
>> First thing to do is, in the machine that's giving the problem look in
>> Tools
>> References for any reference marked as MISSING and uncheck.
>>
>> Re SP3, if you mean and subsequently deployed in SP2 I'm not sure.
>> Probably
>> not at issue but it just might be, depending on what has been used. One
>> way
>> to find out would be to rebuild the project in the older system. Export
>> all
>> the code modules to file and reimport to a new project (you can export
>> from
>> the problematic file, ie can do all within the same system).
>>
>> Why not answer the two questions I asked last time in case that sheds any
>> light.
>>
>> Regards,
>> Peter T
>>
>>
>> "BRG" <(E-Mail Removed)> wrote in message
>> news:0CC354F2-7E9D-406D-A8EC-(E-Mail Removed)...
>> > The tool was developed using Excel 2003 SP3, is this likely the
>> > problem?
>> > Is
>> > there any way to fix this (other than updating to SP3)?
>> >
>> > What am I looking for in References? The tool is entirely in Excel,
>> > doesn't
>> > have any references or import any data from any other applications, and
>> > I
>> > have the VBA and Excel 11.0 object library selected.
>> > --
>> > BRG
>> >
>> >
>> > "Peter T" wrote:
>> >
>> >> Sounds like a missing reference problem (look in Tools, References),
>> >> and/or
>> >> a project that was developed in a later version being used in an
>> >> earlier
>> >> version.
>> >>
>> >> > When the error occurs a variable name is always highlighted, and
>> >> > explicitly
>> >> > defining the variable fixes the problem.
>> >>
>> >> What is the variable type and what do you mean be explicitly defining
>> >> fixes
>> >> it.
>> >>
>> >> It's highly unlikely that the addin 'XY Chart Labeller' is implicated.
>> >>
>> >> Regards,
>> >> Peter T
>> >>
>> >> "BRG" <(E-Mail Removed)> wrote in message
>> >> news:20C968A5-C14C-4631-A08B-(E-Mail Removed)...
>> >> > Hello,
>> >> >
>> >> > I have developed an application that runs without problems on a
>> >> > number
>> >> > of
>> >> > machines, but I keep getting a 'Can't find project or library' error
>> >> > on
>> >> > one
>> >> > machine. The only difference between the machines that I can find
>> >> > is
>> >> > that
>> >> > the problem one is running Excel 2003, SP2 as opposed to the others
>> >> > which
>> >> > are
>> >> > running Excel 2003 SP3.
>> >> >
>> >> > When the error occurs a variable name is always highlighted, and
>> >> > explicitly
>> >> > defining the variable fixes the problem. Another application I have
>> >> > developed without explicitly defining all variables works on the
>> >> > problem
>> >> > machine. Another difference between the applications is that the
>> >> > problem
>> >> > one
>> >> > uses an add in called 'XY Chart Labeller'. I'd rather not have to
>> >> > go
>> >> > through
>> >> > all of the code and explicity define all variables. Any ideas on
>> >> > another
>> >> > way
>> >> > to fix this would be greatly appreciated.
>> >> >
>> >> > --
>> >> > BRG
>> >>
>> >>
>> >>

>>
>>
>>



 
Reply With Quote
 
BRG
Guest
Posts: n/a
 
      4th Dec 2008
I think I will be fully declaring them in the future. None of the variable
names have been used as an object variable.

Yes, the code breaks at "i = 7" with the "i =" highlighted and the error
message "Compile error: Can't find object or library". When using "For
Each" statements, only the variable name is highlighted.
--
BRG


"Peter T" wrote:

> It's always very worthwhile to fully declare variables. However I can't
> think of anything that would cause a problem doing simply
> i = 7
> even if ' i ' had not been declared. Unless perhaps if ' i ' had already
> been used as an object variable. Even then it would be a different type of
> error.
>
> Are you saying the code breaks on "i = 7" with that highlighted and a msg
> saying 'Can't find project or library'
>
> Regards,
> Peter T
>
>
> "BRG" <(E-Mail Removed)> wrote in message
> news:A13AF953-C81A-4494-8D46-(E-Mail Removed)...
> > Sorry about that, I saw the > and thought that was the end of your post.
> >
> > The variable types are varied, the first ones I ran into were 'Commandbar'
> > and 'CommandBarControl'. Now that those work, I am running into problems
> > with integer, string, and boolean variables, when giving them an initial
> > value (ie i = 7) or in 'For Each' loops (ie For Each sh in Sheets).
> >
> > By explicitly defining them, I mean using a Dim statement (or a Public
> > statement for a global variable). It seems VB thinks my variable names
> > are
> > names of objects that it can't find in a library, unless I explicitly
> > define
> > them as variables.
> >
> > I'll take a look for anything labeled as MISSING in References. Thanks
> > for
> > the help!
> > --
> > BRG
> >
> >
> > "Peter T" wrote:
> >
> >> First thing to do is, in the machine that's giving the problem look in
> >> Tools
> >> References for any reference marked as MISSING and uncheck.
> >>
> >> Re SP3, if you mean and subsequently deployed in SP2 I'm not sure.
> >> Probably
> >> not at issue but it just might be, depending on what has been used. One
> >> way
> >> to find out would be to rebuild the project in the older system. Export
> >> all
> >> the code modules to file and reimport to a new project (you can export
> >> from
> >> the problematic file, ie can do all within the same system).
> >>
> >> Why not answer the two questions I asked last time in case that sheds any
> >> light.
> >>
> >> Regards,
> >> Peter T
> >>
> >>
> >> "BRG" <(E-Mail Removed)> wrote in message
> >> news:0CC354F2-7E9D-406D-A8EC-(E-Mail Removed)...
> >> > The tool was developed using Excel 2003 SP3, is this likely the
> >> > problem?
> >> > Is
> >> > there any way to fix this (other than updating to SP3)?
> >> >
> >> > What am I looking for in References? The tool is entirely in Excel,
> >> > doesn't
> >> > have any references or import any data from any other applications, and
> >> > I
> >> > have the VBA and Excel 11.0 object library selected.
> >> > --
> >> > BRG
> >> >
> >> >
> >> > "Peter T" wrote:
> >> >
> >> >> Sounds like a missing reference problem (look in Tools, References),
> >> >> and/or
> >> >> a project that was developed in a later version being used in an
> >> >> earlier
> >> >> version.
> >> >>
> >> >> > When the error occurs a variable name is always highlighted, and
> >> >> > explicitly
> >> >> > defining the variable fixes the problem.
> >> >>
> >> >> What is the variable type and what do you mean be explicitly defining
> >> >> fixes
> >> >> it.
> >> >>
> >> >> It's highly unlikely that the addin 'XY Chart Labeller' is implicated.
> >> >>
> >> >> Regards,
> >> >> Peter T
> >> >>
> >> >> "BRG" <(E-Mail Removed)> wrote in message
> >> >> news:20C968A5-C14C-4631-A08B-(E-Mail Removed)...
> >> >> > Hello,
> >> >> >
> >> >> > I have developed an application that runs without problems on a
> >> >> > number
> >> >> > of
> >> >> > machines, but I keep getting a 'Can't find project or library' error
> >> >> > on
> >> >> > one
> >> >> > machine. The only difference between the machines that I can find
> >> >> > is
> >> >> > that
> >> >> > the problem one is running Excel 2003, SP2 as opposed to the others
> >> >> > which
> >> >> > are
> >> >> > running Excel 2003 SP3.
> >> >> >
> >> >> > When the error occurs a variable name is always highlighted, and
> >> >> > explicitly
> >> >> > defining the variable fixes the problem. Another application I have
> >> >> > developed without explicitly defining all variables works on the
> >> >> > problem
> >> >> > machine. Another difference between the applications is that the
> >> >> > problem
> >> >> > one
> >> >> > uses an add in called 'XY Chart Labeller'. I'd rather not have to
> >> >> > go
> >> >> > through
> >> >> > all of the code and explicity define all variables. Any ideas on
> >> >> > another
> >> >> > way
> >> >> > to fix this would be greatly appreciated.
> >> >> >
> >> >> > --
> >> >> > BRG
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
New Member
Join Date: Jan 2009
Posts: 1
 
      7th Jan 2009
Hi!

I have the exact same problem.

I developed a tool in Excel with SP2 and it works fine. the problem happens in a diferent machine taht is runing SP3. so i dont get it at all, ive checked all the references it seems ok.

the problem goes away when i declare the variables, i know i should have done that but now i just have to extense code to go trough it again, and was looking for a diferent solution and to find the reason of this.

anyone can help?

tks
 
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
error can't find project or library cedtech23 Microsoft Excel Programming 1 21st Jul 2006 06:48 PM
Error:Can't find project or library Casey Microsoft Excel Programming 9 13th Aug 2005 09:53 AM
Can't find Project or Library error =?Utf-8?B?Q3liZXJ3b2xm?= Microsoft Access VBA Modules 0 16th Jun 2005 08:27 PM
Can't find project or library error Hanksor Microsoft Access Form Coding 2 9th Feb 2005 08:34 PM
Can't find project or Library error. Grant Microsoft Access Form Coding 1 24th May 2004 09:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:47 PM.