Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DistListItem Object
Collapse the table of content
Expand the table of content

DistListItem Object (Outlook)

Represents a distribution list in a Contacts folder.

A distribution list can contain multiple recipients and is used to send messages to everyone in the list.

Use the CreateItem method to create a DistListItem object that represents a new distribution list.

Use Items(index), where index is the index number of an item in a contacts folder or a value used to match the default property of an item in the folder, to return a single DistListItem object from a contacts folder (that is, a folder whose default item type is olContactItem).

The following Microsoft Visual Basic for Applications (VBA) example creates and displays a new distribution list.

Set myItem = Application.CreateItem(olDistributionListItem) 
 
myItem.Display

The following Visual Basic for Applications example sets the current folder as the contacts folder and displays an existing distribution list named Project Team in the folder.

Set myNamespace = Application.GetNamespace("MAPI") 
 
Set myFolder = myNamespace.GetDefaultFolder(olFolderContacts) 
 
myFolder.Display 
 
Set myItem = myFolder.Items("Project Team") 
 
myItem.Display
Show:
© 2015 Microsoft