473,406 Members | 2,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Microsoft Office 8.0 Object Library

I have Office97Pro, Office2000Premium and OfficeXP Pro all installed. I'm
creating an Access97 application for another person and need to set a
reference to Microsoft Office 8.0 Object Library. When I look at my
references, all I have is Microsoft Office 10.0 Object Library. Why don't
have Microsoft Office 8.0 Object Library when I have Office97Pro installed?
What can I do to get a reference to Microsoft Office 8.0 Object Library?

Thanks!

Rolf
Nov 13 '05 #1
13 18766
On Nov 27 2004, 10:48 pm, "Rolf" <rl*****@mycourt.com> wrote in
news:1U*****************@newsread2.news.atl.earthl ink.net:
I have Office97Pro, Office2000Premium and OfficeXP Pro all installed.
I'm creating an Access97 application for another person and need to
set a reference to Microsoft Office 8.0 Object Library. When I look at
my references, all I have is Microsoft Office 10.0 Object Library. Why
don't have Microsoft Office 8.0 Object Library when I have Office97Pro
installed? What can I do to get a reference to Microsoft Office 8.0
Object Library?


When you install a later version of Office on a machine with Office 97, the
newer version registers its own version of the Office library, which is
supposed to be backwards-compatible with the Office 97 version. If you set
a reference to v10.0 library in an Access 97 database (which is ok for
development, although you shouldn't use any features from the new library
that are not present in the old one), and then move the database to a
machine that only has Office 97 installed, Access will fix up the reference
so that the 8.0 version of the Office library is used.

That's how it _should_ work. It wouldn't be a bad idea to test it in your
environment.

--
remove a 9 to reply by email
Nov 13 '05 #2
My experience has been otherwise.
If I develop an application with a reference to Office 8.0 and put it on a
machine with Office 9.0, the "fix" is automatic, but not in the other
direction.

"Dimitri Furman" <df*****@cloud99.net> wrote in message
news:Xn****************************@127.0.0.1...
On Nov 27 2004, 10:48 pm, "Rolf" <rl*****@mycourt.com> wrote in
news:1U*****************@newsread2.news.atl.earthl ink.net:
I have Office97Pro, Office2000Premium and OfficeXP Pro all installed.
I'm creating an Access97 application for another person and need to
set a reference to Microsoft Office 8.0 Object Library. When I look at
my references, all I have is Microsoft Office 10.0 Object Library. Why
don't have Microsoft Office 8.0 Object Library when I have Office97Pro
installed? What can I do to get a reference to Microsoft Office 8.0
Object Library?
When you install a later version of Office on a machine with Office 97,

the newer version registers its own version of the Office library, which is
supposed to be backwards-compatible with the Office 97 version. If you set
a reference to v10.0 library in an Access 97 database (which is ok for
development, although you shouldn't use any features from the new library
that are not present in the old one), and then move the database to a
machine that only has Office 97 installed, Access will fix up the reference so that the 8.0 version of the Office library is used.

That's how it _should_ work. It wouldn't be a bad idea to test it in your
environment.

--
remove a 9 to reply by email

Nov 13 '05 #3
"Rolf" <rl*****@mycourt.com> wrote in message
news:1U*****************@newsread2.news.atl.earthl ink.net...
I have Office97Pro, Office2000Premium and OfficeXP Pro all installed. I'm
creating an Access97 application for another person and need to set a
reference to Microsoft Office 8.0 Object Library. When I look at my
references, all I have is Microsoft Office 10.0 Object Library. Why don't
have Microsoft Office 8.0 Object Library when I have Office97Pro installed?
What can I do to get a reference to Microsoft Office 8.0 Object Library?


Use late binding and it won't matter which version is present, and you app will
be less crippled on machines where NO version of the library is present.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #4
Rick,

I need the Microsoft Office 8.0 Object Library to be able to work with the
commandbars collection. I have included a sample of my code. How do I apply
late binding?

Dim cbr As CommandBar
Dim Ctl As CommandBarComboBox
On Error GoTo ErrorHandler
Set cbr = CommandBars("CourseCalendarMenu")
Set Ctl = cbr.Controls("Month")
Ctl.ListIndex = Month(Date)

Thanks!

Rolf

"Rick Brandt" <ri*********@hotmail.com> wrote in message
news:30*************@uni-berlin.de...
"Rolf" <rl*****@mycourt.com> wrote in message
news:1U*****************@newsread2.news.atl.earthl ink.net...
I have Office97Pro, Office2000Premium and OfficeXP Pro all installed. I'm
creating an Access97 application for another person and need to set a
reference to Microsoft Office 8.0 Object Library. When I look at my
references, all I have is Microsoft Office 10.0 Object Library. Why don't have Microsoft Office 8.0 Object Library when I have Office97Pro installed? What can I do to get a reference to Microsoft Office 8.0 Object Library?
Use late binding and it won't matter which version is present, and you app

will be less crippled on machines where NO version of the library is present.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com

Nov 13 '05 #5
"Rolf" <rl*****@mycourt.com> wrote in message
news:bZ*****************@newsread2.news.atl.earthl ink.net...
Rick,

I need the Microsoft Office 8.0 Object Library to be able to work with the
commandbars collection. I have included a sample of my code. How do I
apply
late binding?


Dim cbr As Object
Dim Ctl As Object
On Error GoTo errorhandler
Set cbr = CommandBars("CourseCalendarMenu")
Set Ctl = cbr.Controls("Month")
Ctl.ListIndex = Month(Date)


Nov 13 '05 #6
It's called MSO97.dll It is normally in your (Office 97) Office
folder. It's not displayed because it is compatible with the
Office 10 version: the registry entry can point to one or the
other, but not both.

And you probably should not have a reference to the Office object
library except during development. Take out the reference,
check for compilation errors, and use late bound objects
(set obj = createobject).

(david)

"Rolf" <rl*****@mycourt.com> wrote in message
news:1U*****************@newsread2.news.atl.earthl ink.net...
I have Office97Pro, Office2000Premium and OfficeXP Pro all installed. I'm
creating an Access97 application for another person and need to set a
reference to Microsoft Office 8.0 Object Library. When I look at my
references, all I have is Microsoft Office 10.0 Object Library. Why don't
have Microsoft Office 8.0 Object Library when I have Office97Pro installed? What can I do to get a reference to Microsoft Office 8.0 Object Library?

Thanks!

Rolf

Nov 13 '05 #7
David,

Thank you for taking the time to respond!

Two questions ---
1. Why shouldn't I have a reference to the Office object library except
during development. Why not use late binding during development?
2. I need the Microsoft Office 8.0 Object Library to be able to work with
the commandbars collection. I have included a sample of my code. How do I
apply late binding?

Dim cbr As CommandBar
Dim Ctl As CommandBarComboBox
On Error GoTo ErrorHandler
Set cbr = CommandBars("CourseCalendarMenu")
Set Ctl = cbr.Controls("Month")
Ctl.ListIndex = Month(Date)

Thanks!

Rolf

"david epsom dot com dot au" <david@epsomdotcomdotau> wrote in message
news:41***********************@news.syd.swiftdsl.c om.au...
It's called MSO97.dll It is normally in your (Office 97) Office
folder. It's not displayed because it is compatible with the
Office 10 version: the registry entry can point to one or the
other, but not both.

And you probably should not have a reference to the Office object
library except during development. Take out the reference,
check for compilation errors, and use late bound objects
(set obj = createobject).

(david)

"Rolf" <rl*****@mycourt.com> wrote in message
news:1U*****************@newsread2.news.atl.earthl ink.net...
I have Office97Pro, Office2000Premium and OfficeXP Pro all installed. I'm creating an Access97 application for another person and need to set a
reference to Microsoft Office 8.0 Object Library. When I look at my
references, all I have is Microsoft Office 10.0 Object Library. Why don't have Microsoft Office 8.0 Object Library when I have Office97Pro

installed?
What can I do to get a reference to Microsoft Office 8.0 Object Library?

Thanks!

Rolf


Nov 13 '05 #8
> during development. Why not use late binding during development?

Early binding lets you use the Type Library during development.
This lets you use AutoComplete, compilation checks, the Office
help files, etc. Once you have it working on your PC, then you
can remove the reference, and go through and remove all the type
declarations and named constants, and use late binding for the
object creation.

(david)

"Rolf" <rl*****@mycourt.com> wrote in message
news:bw****************@newsread3.news.atl.earthli nk.net...
David,

Thank you for taking the time to respond!

Two questions ---
1. Why shouldn't I have a reference to the Office object library except
during development. Why not use late binding during development?
2. I need the Microsoft Office 8.0 Object Library to be able to work with
the commandbars collection. I have included a sample of my code. How do I
apply late binding?

Dim cbr As CommandBar
Dim Ctl As CommandBarComboBox
On Error GoTo ErrorHandler
Set cbr = CommandBars("CourseCalendarMenu")
Set Ctl = cbr.Controls("Month")
Ctl.ListIndex = Month(Date)

Thanks!

Rolf

Nov 13 '05 #9
David,

Thanks for responding!

Do you have a response to my second question?

Rolf
"david epsom dot com dot au" <david@epsomdotcomdotau> wrote in message
news:41***********************@news.syd.swiftdsl.c om.au...
during development. Why not use late binding during development?


Early binding lets you use the Type Library during development.
This lets you use AutoComplete, compilation checks, the Office
help files, etc. Once you have it working on your PC, then you
can remove the reference, and go through and remove all the type
declarations and named constants, and use late binding for the
object creation.

(david)

"Rolf" <rl*****@mycourt.com> wrote in message
news:bw****************@newsread3.news.atl.earthli nk.net...
David,

Thank you for taking the time to respond!

Two questions ---
1. Why shouldn't I have a reference to the Office object library except
during development. Why not use late binding during development?
2. I need the Microsoft Office 8.0 Object Library to be able to work with the commandbars collection. I have included a sample of my code. How do I apply late binding?

Dim cbr As CommandBar
Dim Ctl As CommandBarComboBox
On Error GoTo ErrorHandler
Set cbr = CommandBars("CourseCalendarMenu")
Set Ctl = cbr.Controls("Month")
Ctl.ListIndex = Month(Date)

Thanks!

Rolf


Nov 13 '05 #10
Same as for any other late binding:

Dim cbr As Object
Dim Ctl As Object

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

"Rolf" <rl*****@mycourt.com> wrote in message
news:fR*****************@newsread3.news.atl.earthl ink.net...
David,

Thanks for responding!

Do you have a response to my second question?

Rolf
"david epsom dot com dot au" <david@epsomdotcomdotau> wrote in message
news:41***********************@news.syd.swiftdsl.c om.au...
during development. Why not use late binding during development?
Early binding lets you use the Type Library during development.
This lets you use AutoComplete, compilation checks, the Office
help files, etc. Once you have it working on your PC, then you
can remove the reference, and go through and remove all the type
declarations and named constants, and use late binding for the
object creation.

(david)

"Rolf" <rl*****@mycourt.com> wrote in message
news:bw****************@newsread3.news.atl.earthli nk.net...
David,

Thank you for taking the time to respond!

Two questions ---
1. Why shouldn't I have a reference to the Office object library except during development. Why not use late binding during development?
2. I need the Microsoft Office 8.0 Object Library to be able to work with the commandbars collection. I have included a sample of my code. How
do I apply late binding?

Dim cbr As CommandBar
Dim Ctl As CommandBarComboBox
On Error GoTo ErrorHandler
Set cbr = CommandBars("CourseCalendarMenu")
Set Ctl = cbr.Controls("Month")
Ctl.ListIndex = Month(Date)

Thanks!

Rolf



Nov 13 '05 #11
Thanks, Doug!

What about CreateObject; is that applicable?

Rolf
"Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message
news:3f********************@rogers.com...
Same as for any other late binding:

Dim cbr As Object
Dim Ctl As Object

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

"Rolf" <rl*****@mycourt.com> wrote in message
news:fR*****************@newsread3.news.atl.earthl ink.net...
David,

Thanks for responding!

Do you have a response to my second question?

Rolf
"david epsom dot com dot au" <david@epsomdotcomdotau> wrote in message
news:41***********************@news.syd.swiftdsl.c om.au...
> during development. Why not use late binding during development?

Early binding lets you use the Type Library during development.
This lets you use AutoComplete, compilation checks, the Office
help files, etc. Once you have it working on your PC, then you
can remove the reference, and go through and remove all the type
declarations and named constants, and use late binding for the
object creation.

(david)

"Rolf" <rl*****@mycourt.com> wrote in message
news:bw****************@newsread3.news.atl.earthli nk.net...
> David,
>
> Thank you for taking the time to respond!
>
> Two questions ---
> 1. Why shouldn't I have a reference to the Office object library except > during development. Why not use late binding during development?
> 2. I need the Microsoft Office 8.0 Object Library to be able to
work with
> the commandbars collection. I have included a sample of my code. How

do
I
> apply late binding?
>
> Dim cbr As CommandBar
> Dim Ctl As CommandBarComboBox
> On Error GoTo ErrorHandler
> Set cbr = CommandBars("CourseCalendarMenu")
> Set Ctl = cbr.Controls("Month")
> Ctl.ListIndex = Month(Date)
>
> Thanks!
>
> Rolf
>



Nov 13 '05 #12
If you can create your objects by referring to some other object or
collection, you don't need the CreateObject. That's only required if you're
creating a brand new object.

To be honest, though, I'm not sure whether your reference to the CommandBars
collection is going to work if you don't have the reference set. You'll have
to try it and see.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

"Rolf" <rl*****@mycourt.com> wrote in message
news:es*****************@newsread3.news.atl.earthl ink.net...
Thanks, Doug!

What about CreateObject; is that applicable?

Rolf
"Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message
news:3f********************@rogers.com...
Same as for any other late binding:

Dim cbr As Object
Dim Ctl As Object

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

"Rolf" <rl*****@mycourt.com> wrote in message
news:fR*****************@newsread3.news.atl.earthl ink.net...
David,

Thanks for responding!

Do you have a response to my second question?

Rolf
"david epsom dot com dot au" <david@epsomdotcomdotau> wrote in message
news:41***********************@news.syd.swiftdsl.c om.au...
> > during development. Why not use late binding during development?
>
> Early binding lets you use the Type Library during development.
> This lets you use AutoComplete, compilation checks, the Office
> help files, etc. Once you have it working on your PC, then you
> can remove the reference, and go through and remove all the type
> declarations and named constants, and use late binding for the
> object creation.
>
> (david)
>
> "Rolf" <rl*****@mycourt.com> wrote in message
> news:bw****************@newsread3.news.atl.earthli nk.net...
> > David,
> >
> > Thank you for taking the time to respond!
> >
> > Two questions ---
> > 1. Why shouldn't I have a reference to the Office object library

except
> > during development. Why not use late binding during development?
> > 2. I need the Microsoft Office 8.0 Object Library to be able to work with
> > the commandbars collection. I have included a sample of my code.
How do
I
> > apply late binding?
> >
> > Dim cbr As CommandBar
> > Dim Ctl As CommandBarComboBox
> > On Error GoTo ErrorHandler
> > Set cbr = CommandBars("CourseCalendarMenu")
> > Set Ctl = cbr.Controls("Month")
> > Ctl.ListIndex = Month(Date)
> >
> > Thanks!
> >
> > Rolf
> >
>
>



Nov 13 '05 #13
On Dec 01 2004, 06:58 pm, "Douglas J. Steele"
<NOSPAM_djsteele@NOSPAM_canada.com> wrote in
news:Zd********************@rogers.com:
To be honest, though, I'm not sure whether your reference to the
CommandBars collection is going to work if you don't have the
reference set. You'll have to try it and see.


At least in A97, this would sometimes work even without an explicit
reference to the Office library. Access is using the same library itself,
and it "shortcuts" some (not all) of the library's objects and methods so
that they can be used in your application code.

To be honest, I'd much rather set the reference and be done with it. The
library is present on every machine that has Access installed - unlike some
other libraries, I've yet to see this one cause any problems with broken
refs.

--
remove a 9 to reply by email
Nov 13 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Helene Day | last post by:
I am trying to access the Word Objects from a .NET project. I have some sample from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_vsto2003_ta/html/WordObject.asp and I...
1
by: Rene Muench | last post by:
Hi there, I am running AccessXp and want to make use to the new filedialog object. the references are set to: VBA, MS Access 10.0 Object Library, Ole Automation, Microsoft Office 10.0 Object...
6
by: Steve | last post by:
What would happen if an Access97 database had a reference to Microsoft Office 10 library (but only used Access97 stuff) and it was run on a machine that only had Access97 and correspondingly only...
3
by: | last post by:
Hi! How to extand and access the internat Office object structure. Is there any Dev Kit for Microsoft Partners that in not available to "normal" users? Something like NOKIA back entrence!? ...
6
by: ©pEIO | last post by:
I have installed the PIA of Microsoft Office 2003 and the installation was succefully. If I add the reference of Microsoft Excel 11.0, I see that the property CopyLocal is False and the assembly...
9
by: Dean | last post by:
I wrote a simple App in Access 2003 but used the 2000 file format. The one module Requires reference to Microsoft Office 11.0 Object Library. However, the person I have the code to has Office 2003...
5
by: Michael Russell | last post by:
Hi all, Using C#, I've created a simple wrapper class for using Excel. I have Office Pro 2003 installed on my devel machine. The wrapper class works great, reading and writing to/from Excel. ...
6
by: Excel 009 | last post by:
Hi, In my office I have Office 2003 on the PC. I created an Access application which has a component reference to Microsoft Office 12.0 Object Library. The problem that I am having now it...
1
by: Sylfelin | last post by:
Hello, If I use Microsoft Outlook 12.0 Object Library (Outlook 2007) COM Object in my application, the custommer must have the outlook 2007 on his computer ? But if i use Microsoft Outlook...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.