Hi!
This is not so easy to solve, I guess. I have some ideas about this, but I did not tried them because I upgraded to MS Office 2000 and all works perfect there. If you don't want to upgrade to Outlook 2000, try following:
Run outlook.exe as application with '/Automation' keyword, than try to use GetObject function to get OLE reference to new instance of outlook application.
HTH.
>Hello, I'm using this code to access to address book entries.
>It works OK !,
>
>**************
>* Init method of cboAddressBook control
>oOutlook = CREATEOBJECT("Outlook.Application")
>oNameSpace = oOutlook.GetNameSpace("MAPI")
>oAddressBook = oNameSpace.AddressLists("Lista global de direcciones")
>With oAddressBook.AddressEntries
> For i = 1 To .Count
> This.AddItem( .Item[i].Name )
> Next
>EndWith
>Release oAddressBook, oNameSpace, oOutlook
>**************
>
>The problem is when oOutlook object is released because if any other instance of Microsoft Outlook were opened before this code was runned, they are closed in anyway.
>
>Any suggestion ???
>Thanks in advance!!
>Esteban Bruno
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.