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

distribution list member name field



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 3rd 06, 02:10 AM posted to microsoft.public.outlook.program_vba
Hal
external usenet poster
 
Posts: 22
Default distribution list member name field

Hello all

My company has 2 john smiths. If I resolve the receipent field to john
smith it may not be giving me the correct information. If I resolve the
object to the email address and add it to the distribution list, how do I
change the Name field to John Smith ?

Set objRcpnt = olApp.Session.CreateRecipient(objContact.Email1Add ress)

objRcpnt.Resolve
objDstList.AddMember objRcpnt
objDstList.DLName = dname
objDstList.Save

This will set name and email address email1address value

Thanks
  #2  
Old October 3rd 06, 03:40 AM posted to microsoft.public.outlook.program_vba
Hal
external usenet poster
 
Posts: 22
Default distribution list member name field

solved

"Hal" wrote:

Hello all

My company has 2 john smiths. If I resolve the receipent field to john
smith it may not be giving me the correct information. If I resolve the
object to the email address and add it to the distribution list, how do I
change the Name field to John Smith ?

Set objRcpnt = olApp.Session.CreateRecipient(objContact.Email1Add ress)

objRcpnt.Resolve
objDstList.AddMember objRcpnt
objDstList.DLName = dname
objDstList.Save

This will set name and email address email1address value

Thanks

 




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
Distribution list is not recognized on "To" field jaminthepark Outlook - Using Contacts 7 December 8th 06 09:29 PM
select one member from a distribution list to be added to another jeffsquest Outlook - Using Contacts 0 August 15th 06 04:23 PM
Redemption library - Add distribution list as member to another distributionlist Tommy Ipsen Outlook - General Queries 0 June 2nd 06 11:23 PM
Adding a Member (existing in GAL) to a Public Distribution List in K.N.Ganesh. Outlook and VBA 1 May 23rd 06 09:25 PM
Outlook 2003 Distribution List doesn't show member names JMTP Outlook - Using Contacts 0 February 1st 06 05:16 PM


All times are GMT +1. The time now is 11:32 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.