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

Recipients.add



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old July 16th 07, 04:22 AM posted to microsoft.public.outlook.program_vba
Jonathan
external usenet poster
 
Posts: 49
Default Recipients.add

Hi, I want to create a distribution list from contacts listed in MS Access. I
can create the distribution list contact item and fill with recipients so
that their name is actually their email address.

Unfortunitely this is not user friendly to review when compared with having
each recipient listed with their name and email address in separate
columns/fields. The following adds a recipient with the same value in the
name and email address fields. That is, name is and
email is


Set myOlDistList = myOlApp.CreateItem(olDistributionListItem)
myOlDistList.DLName = DistListName
Do Until rstDistList.EOF
Set myOlRecipient = myOlApp.Session.CreateRecipient(rstDistList!Email)
myOlRecipient.Resolve
myOlDistList.AddMember myOlRecipient
rstDistList.MoveNext
DoEvents
Loop
rstDistList.Close
myOlDistList.Save
myOlDistList.Display

I would like to create each recipient with the name of the contact and the
email address stored in the email field.

Any ideas or suggestions appreciated :-)

Many thanks, Jonathan
 




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
Too Many recipients? windowsdummy Outlook - Using Contacts 2 May 19th 07 12:57 PM
Recipients Graham FM Outlook Express 3 April 22nd 07 01:18 AM
fax recipients not showing up Rich Hall Outlook - General Queries 3 March 5th 07 11:23 PM
Fax recipients faxman Outlook - Using Contacts 3 May 30th 06 09:45 AM
Recipients Objects David Cebrian Add-ins for Outlook 1 March 16th 06 09:05 PM


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