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
Lic. Esteban Bruno
Gerente de Sistemas
TASSO S.R.L.