Using a Distribution list programmaticaly

  • Thread starter Thread starter Todd Huttenstine
  • Start date 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
 
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")
 
Back
Top