DistListItem object (Outlook)
Represents a distribution list in a Contacts folder.
Remarks
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).
Example
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
Events
Methods
Name |
---|
AddMember |
AddMembers |
ClearTaskFlag |
Close |
Copy |
Delete |
Display |
GetConversation |
GetMember |
MarkAsTask |
Move |
PrintOut |
RemoveMember |
RemoveMembers |
Save |
SaveAs |
ShowCategoriesDialog |
Properties
See also
Outlook Object Model Reference
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기