Mike
if you are referencing external components (which it sounds like you are
from the missing library errors) then ideally you should develop on a
machine with the oldest version of Excel and Internet Explorer and
Windows. Otherwise this problem will keep cropping up.
You can't roll your box back by just installing 2000 as various OS
components will have been updated and won't get downgraded. Well it
might work - it totally depends what components your code is referencing.
Another option which I have used in the past is to remove the references
and declare the variables referring to external components as Objects eg:
Dim cat as ADOX.Catalog 'for my machine
Dim cat as Object ' for their machine.
Then comment out the objects and add the refs for developing and
testing. For release remove refs and swap comment lines. This executes a
bit slower, so may not suit your situation.
You could use conditional compilation if the code is complex.
There is a reference checker here I have found useful:
http://www.codematic.net/excel-tools...xcel-tools.htm
If you are working with data make sure everyone has the latest mdac (and
IE if poss)
Cheers
Simon
Excel development website:
www.codematic.net
MFlanders wrote:
> Thanks Jim - that worked great. But now can I ever make changes to my
> program from my PC with v2003? I control the main file and others access it
> via a link in another software. Should I back load v2000 and always make
> changes there so as to not gig everyone else?
>
> Mike
>
> "Jim Rech" wrote:
>
>> On a user's machine look at Tools, References in the VBE when your project
>> is active and determine which one is "missing". Uncheck it and the code may
>> run fine. If so it's not needed so uncheck it on your machine for future
>> installs.
>>
>> --
>> Jim
>> "MFlanders" <(E-Mail Removed)> wrote in message
>> news:57D3EBF1-6C54-4B46-8A95-(E-Mail Removed)...
>> |I have vb excel that I wrote in version 2000. When my company upgraded my
>> PC
>> | to v2003 I had no problems - all my programs ran just fine. However
>> several
>> | of my fellow employees are still running v2000 and when they attemp to run
>> my
>> | programs - they get a "Compile error: Can't find project or library"
>> error.
>> | Short of paying to have them all upgraded, is there a simple solutions so
>> my
>> | programs will run in v2000?
>> |
>> | Thanks in advance,
>> | Mike
>>
>>