View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
external usenet poster
 
Posts: 11,272
Default How do I add a reference to an object library using VBA?

Use late binding, it is simpler. There is an example of doing this at
http://www.xldynamic.com/source/xld.EarlyLate.html

--

HTH

RP
(remove nothere from the email address if mailing direct)


"GPDynamics" wrote in message
...
Does anyone have code to do the above?

I would like to distribute an Excel application referencing the Outlook
Object Library. However, because they might have different versions of
Outlook I need to be able to load whichever is applicable to their PC.

THANKS.