Finding Distribution List Name

Status
Not open for further replies.

Sepp

New Member
Outlook version
Outlook 2013 64 bit
Email Account
Exchange Server
Hi,

I am writing a piece of vba code on the outlook 2013 client to save attachments depending on which distribution list the incoming mail was sent. I just see the name of the client but not he name of the distribution list.

e.g.:
- incoming mail was sent distribution list "Sales1"
- clerk1 to clerk4 got this mail
- on clerk2 i have a rule who should decide if the sender sent the mail to Sales1 or Sales2

How to i find in vba the name of the correct recipient (distribution list) in this case "Sales1"

Thanks
 

Michael Bauer

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Afaik, you need to loop through each DL and check whether the recipient is a member of the list. This should work as long as the recipient is a member of only one list.
 

Sepp

New Member
Outlook version
Outlook 2013 64 bit
Email Account
Exchange Server
Hi Michael, that could work, but the clerk2 can also be in the distribution list Sales2.

If I could find which Distribution list Name was selected from the Sender to send the mail it would solve my Problem.
 

Michael Bauer

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Hi Sepp, the DL's name is not available.

Only on the sender's site you can get the DL's name. If the sender is in your organization, too, I'd think about flagging the item there, for instance, with a category.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
K Outlook.com is not showing, or finding via search, all my Contacts (People) Using Outlook 0
A ScanPST finding errors but no Repair button Using Outlook 2
F Finding Meetings/Tasks in a date range Using Outlook 1
M Finding Tasks in Outlook 365 Using Outlook 1
A "search people" not finding all contacts Using Outlook 17
Commodore Finding items from last 7 days Using Outlook 2
T Need help with finding/updating task Outlook VBA and Custom Forms 1
M Finding a folder by name Outlook 2013 Using Outlook 4
Ron Kirschner Finding a rule Using Outlook 1
A OL13 Calendar Search not finding most items Using Outlook 15
L Finding deleted contact from shared folder. Exchange Server Administration 1
G finding Outlook 2010 pst in Windows XP Using Outlook 2
P finding a folder containing an email item Using Outlook 0
S Finding an inbox email question Outlook VBA and Custom Forms 2
C Finding an email address based on a name Outlook VBA and Custom Forms 7
N Finding messages by conversation macro Outlook VBA and Custom Forms 1
M Outlook VBA Form not finding FOR LOOP -- Error message Outlook VBA and Custom Forms 2
M How can we find the list of users who are members of a deleted distribution list? Exchange Server Administration 2
Healy Consultants Macro to remove inside organization distribution list email address when reply to all recepients Outlook VBA and Custom Forms 0
M Auto expand Distribution List Before Sending Email Outlook VBA and Custom Forms 1
E Distribution lists Using Outlook 1
M Question about nested distribution lists Outlook VBA and Custom Forms 3
G Bcc help - Preventing multiple forwards from a bcc'd distribution group Using Outlook 1
A Are categories still recommended for creating local distribution lists? Using Outlook 3
Diane Poremsky Using Categories for Dynamic Distribution Lists Using Outlook 0
N Recurring invite sent w/distribution list adding/removing attendees Using Outlook 0
D Macro to scan email distribution list when replying Using Outlook 2
Diane Poremsky Find the Distribution Lists a Contact Belongs to Using Outlook 0
T Missing sub-contact folders (distribution lists) Using Outlook 3
J Maintain Distribution List Using Outlook 3
J Outlook 2013 - Exchange 2007 manage distribution group Exchange Server Administration 1
K Rule for Distribution List Using Outlook 0
M add contacts to shared contacts distribution list Using Outlook 1
M Nested distribution lists: how to count UNIQUE # of people... Outlook VBA and Custom Forms 13
M VBA script to allow mail merges of distribution groups? Using Outlook 7
E Add sender to distribution list? Using Outlook 3
B Restore deleted contact distribution list Using Outlook 1
L Convert Distribution List of Contacts to Single Contacts Using Outlook 6
C Office 2007 Distribution Lists Using Outlook 1
W Combine Mail Merge to Distribution List with Auto Attachments - Outlook 2007 Using Outlook 1
Jennifer Murphy Distribution list fails after conversion to Unicode PST Using Outlook 2
C Can't import distribution list - help, please Using Outlook 1
M Distribution List with hundreds of emails Using Outlook 1
L Individual E-mails from Distribution List Using Outlook 5
M Import distribution list into MS Exchange Sharepoint Exchange Server Administration 3
G Distribution Group Owners Cannot Add/Delete Members Using Outlook 1
G Distribution Group administration Using Outlook 1
A Why doesn't distribution lists update automatically Using Outlook 3
L Send E-mail with VBA code from [E-mail Distribution Group] if I have “Send as” Using Outlook 6
T Distribution List - Export/Import Using Outlook 4

Similar threads

Top