Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   MailItem To property and display name (http://www.outlookbanter.com/outlook-vba/26654-mailitem-property-display-name.html)

Olivier Langlois September 11th 06 04:30 PM

MailItem To property and display name
 
Hi,

I would like to know if there is a way to format the string passed to
the 'To' property to specify to Outlook a 'display name' along with the
e-mail address provided to 'To'.

If not, what are the alternatives to provide a pair Display name/email
address to a newly created MailItem?

Thank you,
Olivier Langlois
http://www.olivierlanglois.net


Sue Mosher [MVP-Outlook] September 11th 06 05:10 PM

MailItem To property and display name
 
Try:

m.To = "FirstName LastName "

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Olivier Langlois" wrote in message oups.com...
Hi,

I would like to know if there is a way to format the string passed to
the 'To' property to specify to Outlook a 'display name' along with the
e-mail address provided to 'To'.

If not, what are the alternatives to provide a pair Display name/email
address to a newly created MailItem?

Thank you,
Olivier Langlois
http://www.olivierlanglois.net



All times are GMT +1. The time now is 02:31 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com