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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook VBA retrieve 'Alias' from email address?

Status
Not open for further replies.

d3sol4t3

Programmer
Oct 27, 2005
40
GB
Hi,

Is it possible to retrieve the 'alias' of a user from their email address?

Kind Regards,
 
Hi Tony,

Im getting the email address from outlook, I've created code that when I highlight an email and press my macro button it will extract the sender, body and title of the email.

I work in a big company and we are using exchange server. The alias is also the persons pc username, which I need to compare against a different system.

Thanks,
 
I guessed it was Outlook - I meant was it from an address book or an e-mail or what. If you look through the Recipients collection of the MailItem, I think the Name property is what you mean by alias. A caveat: I don't work with Exchange so that may affect things - I don't know.

Enjoy,
Tony

------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.

I'm working (slowly) on my own website
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top