Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.
The error is occuring on the "myDistList.Save" instruction.
Dim myOlApp, myDistList, myMailItem, myRecipients Set myOlApp = WScript.CreateObject("Outlook.Application") Set myDistList = myOlApp.CreateItem(7) myDistList.DLName = InputBox("Enter the name of the new distribution list.") Set myMailItem = myOlApp.CreateItem(0) Set myRecipients = myMailItem.Recipients myRecipients.Add "email@example.com" myRecipients.Add "firstname.lastname@example.org" myRecipients.Add "email@example.com" ... myRecipients.Add "firstname.lastname@example.org" myRecipients.ResolveAll myDistList.AddMembers myRecipients myDistList.Save myDistList.Display
|How to search in one specific user mailbox for a specific attachment in Exchange 2010?||5||38|
|Outlook 365 crashing.||4||43|
|Automatically generate a pdf file from an excel file and email out everyday||2||37|
|How can I mark Outlook e-mail as read with one mouse click, and reading pane is off?||9||8|