
- IMPORT CONTACTS TO OUTLOOK DISTRIBUTION LIST FROM EXCEL HOW TO
- IMPORT CONTACTS TO OUTLOOK DISTRIBUTION LIST FROM EXCEL CODE
- IMPORT CONTACTS TO OUTLOOK DISTRIBUTION LIST FROM EXCEL WINDOWS
Print(''.format(contact_item.DLName, member_in_dl. # loop through distribution list members and get their email addressįor i in range(1, contact_item.MemberCount + 1): # check if distribution list's name is equal to the constant OutApp = ("Outlook.Application")Ĭontact_folder = ()įor contact_item in contact_folder.Items: Yeah as almost always there are quite a few options.ĭL_NAME = 'Enter the distribution list name here'
IMPORT CONTACTS TO OUTLOOK DISTRIBUTION LIST FROM EXCEL CODE
IMPORT CONTACTS TO OUTLOOK DISTRIBUTION LIST FROM EXCEL WINDOWS
If its not there, it wont export/import to Windows Mail. The folders enumeration list is available on this link). If the Distribution list is not in your Address Book, try looking in the Contact List. (You can find more information about default folder here. Explore methods for importing multiple Excel file to Outlook PST file contacts properly. The base of the solution is to get your Contacts folder items. Import Contacts from Excel Spreadsheet to Outlook 2016, 2013, 2010, 2007 & 2003 using the best & easy techniques. Please note this is a quick and dirty solution but should give you the basics. To be honest my solution mainly based on the VB example provided for the GetMember method. Since I never was a “heavy” user of distribution lists it got me thinking how it can be done.įortunately there is a DistListItem object in the Outlook object model and it has a GetMember method.
IMPORT CONTACTS TO OUTLOOK DISTRIBUTION LIST FROM EXCEL HOW TO
The question itself was how to extract all email addresses from a given distribution list (aka Contact Group). Actually this post is an answer to a question asked in a comment to Getting information from Outlook GAL with Python.
