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?

DistListFirst NameLast NameEmail AddressCompany
XYZInc3MaryWrightmary@xyz.comXYZ Incorporated
XYZInc3JoeGordjoe@@xyz.comXYZ Incorporated
XYZInc3SarahGillsarah@@xyz.comXYZ Incorporated
XYZInc3JohnWellsjohn@@xyz.comXYZ Incorporated
EFGCorp7BobMillbobm@efg.comEFG Corporation
EFGCorp7DavidSandsdavids@efg.comEFG Corporation
EFGCorp7SueLynnsuel@efg.comEFG Corporation
NNNLLC2GinaJonesgina2@nnn.comNNN LLC

<tbody>
</tbody>


Thank you
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,215,056
Messages
6,122,907
Members
449,096
Latest member
dbomb1414

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