Excel VBA to create multiple distribution lists in outlook (2016)

Status
Not open for further replies.

Beth0331

New Member
Joined
Jun 13, 2018
Messages
7
Hello,

I'm looking for a way to create 80+ distribution lists in outlook and include contacts in those groups. My data looks like the below. I would need to create a new distribution list(contact group) in outlook based off of the name in the DistList column and add new contacts to it. For example I would need to Create a Distribution list named XYZInc3 and then create four new contacts in that distribution lists (Mary, Joe, Sarah & John). After that one is created I would need EFGCorp7 created with 3 contacts(Bob, David and Sue) and so on. Can someone assist with the code that can do this?

Ideally I would like to save these down to a Public Contacts folder, is this possible?

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]DistList[/TD]
[TD]First Name[/TD]
[TD]Last Name[/TD]
[TD]Email Address[/TD]
[TD]Company[/TD]
[/TR]
[TR]
[TD]XYZInc3[/TD]
[TD]Mary[/TD]
[TD]Wright[/TD]
[TD]mary@xyz.com[/TD]
[TD]XYZ Incorporated[/TD]
[/TR]
[TR]
[TD]XYZInc3[/TD]
[TD]Joe[/TD]
[TD]Gord[/TD]
[TD]joe@@xyz.com[/TD]
[TD]XYZ Incorporated[/TD]
[/TR]
[TR]
[TD]XYZInc3[/TD]
[TD]Sarah[/TD]
[TD]Gill[/TD]
[TD]sarah@@xyz.com[/TD]
[TD]XYZ Incorporated[/TD]
[/TR]
[TR]
[TD]XYZInc3[/TD]
[TD]John[/TD]
[TD]Wells[/TD]
[TD]john@@xyz.com[/TD]
[TD]XYZ Incorporated[/TD]
[/TR]
[TR]
[TD]EFGCorp7[/TD]
[TD]Bob[/TD]
[TD]Mill[/TD]
[TD]bobm@efg.com[/TD]
[TD]EFG Corporation[/TD]
[/TR]
[TR]
[TD]EFGCorp7[/TD]
[TD]David[/TD]
[TD]Sands[/TD]
[TD]davids@efg.com[/TD]
[TD]EFG Corporation[/TD]
[/TR]
[TR]
[TD]EFGCorp7[/TD]
[TD]Sue[/TD]
[TD]Lynn[/TD]
[TD]suel@efg.com[/TD]
[TD]EFG Corporation[/TD]
[/TR]
[TR]
[TD]NNNLLC2[/TD]
[TD]Gina[/TD]
[TD]Jones[/TD]
[TD]gina2@nnn.com[/TD]
[TD]NNN LLC[/TD]
[/TR]
</tbody>[/TABLE]


Thank you
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Duplicate https://www.mrexcel.com/forum/excel...ibution-lists-outlook-2016-a.html#post5086516

Please do not post the same question multiple times. All clarifications, follow-ups, and bumps should be posted back to the original thread.
Per forum rules, posts of a duplicate nature will be locked or deleted (rule 12 here: Forum Rules).

Note that sometimes posts from new users require Moderator approval before you can see them on the public forums. When this happens, you should see a message to that effect when you try to post it.
Please be patient and do not attempt to post the question again.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top