MailItem.Attachments Property
Outlook Developer Reference |
Returns an Attachments object that represents all the attachments for the specified item. Read-only.
Syntax
expression.Attachments
expression A variable that represents a MailItem object.
Example
This Visual Basic for Applications (VBA) example uses the Attachments.Remove method to remove all attachments from a forwarded mail message before sending it on to 'Dan Wilson'. To run this example, replace 'Dan Wilson' with a valid recipient's name and keep an item with attachments open in an inspector window.
Visual Basic for Applications |
---|
|
See Also