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

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

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,021
Latest member
Justyna P

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