AddressEntry object vs Contact object

B

baspet

Hi,
is there a way to associate an AddressEntry object with a
Contact object using vb? My app uses cdo
Session.AddressBook method to pop up outlook AddressBook
window. The return value of this method is a Recipients
collection. I need to iterate through this collection
and "cast" each individual entry (Recipient object) to
the corresponding outlook Contact. For example: If
AddressBook has an entry like "firstName lastName (E-
mail)" i want to get the outlook Contact named "firstName
lastName"

Thanks in advance
baspet
 
K

Ken Slovak - [MVP - Outlook]

Starting at byte 37 of the EntryID of the AddressEntry for a contact
the contact's EntryID is embedded. If you start extracting bytes at
byte 37 and continue to the end of the AddressEntry's EntryID, then
discard the final 3 bytes you should get the EntryID of the contact
item.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top