Coping with multiple versions of Office

T

travis

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
 
D

Dave Peterson

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.aspx?scid=kb;EN-US;244167
INFO: Writing Automation Clients for Multiple Office Versions

http://support.microsoft.com/default.aspx?scid=kb;en-us;245115
INFO: Using Early Binding and Late Binding in Automation

http://support.microsoft.com/default.aspx?scid=kb;en-us;247579
INFO: Use DISPID Binding to Automate Office Applications Whenever Possible
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top