|
-
September 27th, 2000, 05:59 AM
#2
Re: Address (contact list) in windows 2000
You can retreive the contact list from outlook 2000 from vb using this code
Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNamespace("MAPI")
' u can use contacts or personnel address book to retrieve it
Set myAddressList = myNameSpace.AddressLists("Contacts")
Set myAddressEntries = myAddressList.AddressEntries
List1.AddItem myAddressEntries.GetFirst
For i = 2 To myAddressEntries.Count
List1.AddItem myAddressEntries.GetNext
Next
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|