Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 58
Default Coping with multiple versions of Office

I have an Excel app which will be used by users with office XP and 2003
(and soon 2007).

I've heard there is a dynamic way to set object library references for
different versions of office. i.e. to test what version is running and
then reference the Word 10 or Word 11 libraries as appropriate.

How?

Travis

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Coping with multiple versions of Office

I would think that it would much easier/safer to use late binding--and never
worry about what version of MSWord is being used:

You might want to look at the way Dick Kusleika does it:
http://www.dicks-clicks.com/excel/olBinding.htm

You may want to look at these links that Tom Ogilvy posted recently:

Here are some more extensive references on binding:

Use late binding - don't have a reference to excel.

http://support.microsoft.com/default...b;EN-US;244167
INFO: Writing Automation Clients for Multiple Office Versions

http://support.microsoft.com/default...b;en-us;245115
INFO: Using Early Binding and Late Binding in Automation

http://support.microsoft.com/default...b;en-us;247579
INFO: Use DISPID Binding to Automate Office Applications Whenever Possible



travis wrote:

I have an Excel app which will be used by users with office XP and 2003
(and soon 2007).

I've heard there is a dynamic way to set object library references for
different versions of office. i.e. to test what version is running and
then reference the Word 10 or Word 11 libraries as appropriate.

How?

Travis


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is solver different between Office versions? Jan Hime[_2_] Excel Worksheet Functions 1 January 15th 08 08:11 PM
Office 07 opening older versions in compatibility mode-min/maximiz Eric Dimbleby Excel Discussion (Misc queries) 0 June 11th 07 03:49 PM
Office Excel 2003 Versions and VBA Cameron Young Setting up and Configuration of Excel 16 June 8th 05 12:54 AM
multiple versions of Office references R Avery Excel Programming 3 October 5th 04 06:41 AM
Method 'Run' of object '_Global' failed when changing OS and Office versions Ronj Excel Programming 2 August 17th 03 06:12 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"