Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Add reference to Outlook library programmatically
Hi,
Can someone tell me how to programmatically add a reference to a library (Outlook, in my case) ? Thanks, Hiran |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Add reference to Outlook library programmatically
Hi Hiran
Why not use Late binding I use it here for example http://www.rondebruin.nl/mail/folder2/mail2.htm See the info about Early binding below the macro -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "Hiran" wrote in message ... Hi, Can someone tell me how to programmatically add a reference to a library (Outlook, in my case) ? Thanks, Hiran |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Add reference to Outlook library programmatically
Try something like
Sub AddOutlookRef() ' reference current installed version of Outlook On Error Resume Next 'ignore if already set ThisWorkbook.VBProject.References.AddFromGuid _ GUID:="{00062FFF-0000-0000-C000-000000000046}", _ major:=0, Minor:=0 End Sub You can add a reference to any file if you know the file name: Sub AAA() ThisWorkbook.VBProject.References.AddFromFile _ Filename:="C:\Path\FileName.ext" End Sub Cordially, Chip Pearson Microsoft Most Valuable Professional Excel Product Group Pearson Software Consulting, LLC www.cpearson.com (email on web site) On Tue, 21 Oct 2008 09:49:47 -0700 (PDT), Hiran wrote: Hi, Can someone tell me how to programmatically add a reference to a library (Outlook, in my case) ? Thanks, Hiran |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Add reference to Outlook library programmatically
Thanks Ron and Chip. You guys are priceless!
Hiran |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Add reference to Outlook library programmatically
Chip,
I'm now trying to use this to add the ADO2.8 library (msado 15.dll) and I get Run-time error '48' 'Error in loading DLL'. What am I missing? Thanks, Hiran |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Outlook 11.0 Library | Excel Programming | |||
Outlook 11 Outlook 10 Object Library Compatibility Issues | Excel Programming | |||
Adding library references programmatically | Excel Programming | |||
Reference Library - Missing Library in a lower version. | Excel Programming | |||
programmatically Set Reference to Library | Excel Programming |