DistListItem Object

DistListItem
Multiple objects

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.

Using the DistListItem Object

Use the CreateItem method to create a DistListItem object that represents a new distribution list. The following Microsoft Visual Basic for Applications (VBA) example creates and displays a new distribution list.

Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(olDistributionListItem)
myItem.Display

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 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 myOlApp = CreateObject("Outlook.Application")
Set myNamespace = myOlApp.GetNamespace("MAPI")
Set myFolder = myNamespace.GetDefaultFolder(olFolderContacts)
myFolder.Display
Set myItem = myFolder.Items("Project Team")
myItem.Display

Properties | Actions Property | Application Property | Attachments Property | AutoResolvedWinner Property | BillingInformation Property | Body Property | Categories Property | Class Property | Companies Property | Conflicts Property | ConversationIndex Property | ConversationTopic Property | CreationTime Property | DLName Property | DownloadState Property | EntryID Property | FormDescription Property | GetInspector Property | Importance Property | IsConflict Property | ItemProperties Property | LastModificationTime Property | Links Property | MarkForDownload Property | MemberCount Property | MessageClass Property | Mileage Property | NoAging Property | OutlookInternalVersion Property | OutlookVersion Property | Parent Property | Saved Property | Sensitivity Property | Session Property | Size Property | Subject Property | UnRead Property | UserProperties Property

Methods | AddMember Method | AddMembers Method | Close Method | Copy Method | Delete Method | Display Method | GetMember Method | Move Method | PrintOut Method | RemoveMember Method | RemoveMembers Method | Save Method | SaveAs Method | ShowCategoriesDialog Method

Events | AttachmentAdd Event | AttachmentRead Event | BeforeAttachmentSave Event | BeforeCheckNames Event | BeforeDelete Event | Close Event | CustomAction Event | CustomPropertyChange Event | Forward Event | Open Event | PropertyChange Event | Read Event | Reply Event | ReplyAll Event | Send Event | Write Event

Parent Objects

Child Objects | Actions Object | Attachments Object | Conflicts Object | FormDescription Object | ItemProperties Object | Links Object | UserProperties Object

See Also | ContactItem Object | MAPIFolder Object