View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Tim Zych Tim Zych is offline
external usenet poster
 
Posts: 389
Default Referencing two versions Object models

they open the file, they are greeted with "Cannot Find Library or some
such
since the VBE is looking for the Office 2003 reference.


How do you arrive at that conclusion? Are you sure it's the Office reference
that's MISSING, and not something else?

Excel should be smart enough to refer to the prior versions (Excel, Office)
when they open it. As a test I tried an XL2003 project out on an
XL2000/Office2000 machine and the references automatically adjusted. I don't
have Office 2003 on that machine.

When you open the 2003 project on the 2002 machine, is the Excel/Office
reference MISSING?


--
Tim Zych
SF, CA

"Cory" wrote in message
...
Good afternoon,

I have developed a rather lengthy project in Excel 2003 that I would like
to
allow my coworkers to use. Unfortunately they have Office XP/2002, and
when
they open the file, they are greeted with "Cannot Find Library or some
such
since the VBE is looking for the Office 2003 reference. Now I could just
have them copy the office 2003 .tlb file to the appropriate directory on
their systems, but that portion of the file structure has permissions in
place that keep lowly users such as us from modyfying it and would require
an
admin to copy each one by had.

Is it possible to have the code selectively reference different object
libraries based on the version of the Office program running? And if I
have
already specified Office11 (Office 2003) libraries will this keep the
"Can't
remove control or Reference; in use" message from stopping the show?
Thank
you in advance for any hyelp that you might give me on this vexxing
matter.

Cory