DistListItem.AddMembers Method
Outlook Developer Reference |
Adds new members to a distribution list.
Syntax
expression.AddMembers(Recipients)
expression A variable that represents a DistListItem object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Recipients | Required | Recipients | The members to be added to the distribution list. |
Example
This Microsoft Visual Basic/Visual Basic for Applications (VBA) example creates a new distribution list and adds the current user and 'Dan Wilson' to the list. If the specified recipient is not valid, the AddMember method will fail. Therefore, to run this example, replace 'Dan Wilson' with a valid recipient name.
Visual Basic for Applications |
---|
|
See Also