A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

MailItem To property and display name



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 11th 06, 04:30 PM posted to microsoft.public.office.developer.outlook.vba,microsoft.public.outlook.program_vba
Olivier Langlois
external usenet poster
 
Posts: 10
Default 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

Ads
  #2  
Old September 11th 06, 05:10 PM posted to microsoft.public.office.developer.outlook.vba,microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default 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

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
verify and delete mailitem Joanne Outlook and VBA 8 June 13th 06 11:38 PM
Set MailItem.Sender Property Joshua Ellul Add-ins for Outlook 2 June 8th 06 06:30 PM
'Display Name' Property for Attachments.Add Method Ned Moorfield Outlook and VBA 0 May 18th 06 09:06 AM
Read body of MailItem ? Trey Shaffer Outlook and VBA 1 March 18th 06 07:56 PM
How can I create a MailItem that displays like a received MailItem ? Clive Outlook - Using Forms 0 February 27th 06 04:14 PM


All times are GMT +1. The time now is 10:16 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-2025 Outlook Banter.
The comments are property of their posters.