Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2004

Tip: Looking for answers? Try searching our database.

Multiple versions of word

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joseph Halberstam - 07 Nov 2004 00:45 GMT
Hi,

I need to create a com add-in that will run in all versions of Excel and
Word 2000 and higher.

Anyone have suggestions???

Thanks,

-Yossi
Jezebel - 07 Nov 2004 01:28 GMT
1. Develop it using the earliest version of these products that you intend
to support.

2. Use CreateObject and GetObject to instantiate your reference to the
applications (instead of adding a project reference). You might find it
convenient to use a project reference while you're developing, to get the
benefit of intellisense and syntax checking; but remove the reference before
compiling -- then the app will use whatever version the user actually has
installed.

3. Use the Application.Version property to check whether the user has an
acceptable version.

> Hi,
>
[quoted text clipped - 6 lines]
>
> -Yossi
Steve Rindsberg - 07 Nov 2004 16:06 GMT
> 3. Use the Application.Version property to check whether the user has an
> acceptable version.

And note that .Version returns a string that doesn't necessarily contain
all-numeric characters.  Something like:

If Application.Version > 8 Then

will work most of the time but will error if you run it in Office 97 SR1a I
think it is, which returns "8.0b" for .Version

It seems safe to use:

If Clng(Val(Application.Version)) > 8 Then
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.