LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 220
Default multiple versions of Office references

THanks, but let us assume that even though I have the office 11 type
library available, I never want to use it. I only want to use the
office 10 type library, but it does not appear in the References list.
Is there anyway to do this?


Bob Phillips wrote:
Use late binding.

Instead of something like

Dim wdApp As Word.Application

Set wdApp = New Word.Application

you would use

Dim wdApp As Object

Set wdApp = CreateObject("Word.Application")

and you don't set a reference in VBE (which is where the problem arises).

but you don't have access to the application constants in this case

One technique is to develop with early binding, and change to late binding
to release. There is a walk-through example at
http://www.xldynamic.com/source/xld.EarlyLate.html

 
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
Missing References between Excel Versions Merkling, Steven Excel Programming 0 November 25th 03 02:40 PM
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 06:30 PM.

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

About Us

"It's about Microsoft Excel"