Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pickup alias of a recipient

Status
Not open for further replies.

xtraterrestrial

Programmer
Sep 23, 2003
38
CA
I want to pickup an alias of a recipient from an address book object that I used.
This is the code that I have so far

Set objCDO = Application.CreateObject("MAPI.Session")
objCDO.Logon "", "", False, False, 0
Set Recips = objCDO.AddressBook(Nothing, _
strDialogCaption, False, True, 1, strShortName, "", "", 0)
Msgbox Recips(i).Name ' This returns the name

I want to return the alias, or something that can uniquely identify the person's email address. I want to do this because many times two people will have the exact same name and the program cannot resolve two the correct recipient.
Any help would be appreciated


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top