Using a Distribution list programmaticaly

  • Thread starter Todd Huttenstine
  • Start date
T

Todd Huttenstine

Hey guys

How would I make VBA use a distribution list for the TO:
address in an email? I have a distribution list and I
want to specify in my VBA code for outlook to use that
distribution list to send the emails. How do I do this?

Thanks
Todd Huttenstine
 
G

Guest

As long as your Contacts folder that contains your DL is configured as an
Outlook Address Book, just adding the name of the DL to the Recipients
collection should resolve it properly:

objMail.Recipients.Add ("MyDL")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top