Attachments.Remove Method
Outlook Developer Reference |
Removes an object from the collection.
Syntax
expression.RemoveIndex
expression A variable that represents an Attachments object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Index | Required | Long | The 1-based index value of the object within the collection. |
Example
This Visual Basic for Applications (VBA) example uses the Remove method to remove all attachments from a forwarded message before sending it on to Dan Wilson. Before running this example, replace 'Dan Wilson' with a valid recipient name.
Visual Basic for Applications |
---|
|
See Also