One small question... I see in the Outlook address book that a DL has a "Name" and a "Display name". At this moment in time, they are the same. It would be great if the "Name" would stay the same but if I could change the "Display Name". I can't do that manually and quite frankly, I don't know if I could do that through code... My idea is to add a date to the display name. That way, if I update my DL, it will overwrite the old one (as the "Name" field is the same), but still the user sees when the DL was created....
So... my DL is named "myDL" and each new one therefore overwrites the old one. The display name would however be something like "myDL 2011.12.31"...
Here's parts of how I'm doing things now...
Creating a DL
Code: Select all
Set olDL = olApp.CreateItem(7) 'olDistributionListItem
olDL.DLName = DLName
' Create dummy mail
Set olMail = olApp.CreateItem(0) 'olMailItem
Code: Select all
Set olRec = olMail.Recipients.Add(RecipName)
Code: Select all
olDL.AddMembers olMail.Recipients
olDL.Save