Attachments Object
Outlook Developer Reference |
Contains a set of Attachment objects that represent the attachments in an Outlook item.
Remarks
Use the Attachments property to return the Attachments collection for any Outlook item (except notes).
Use the Add method to add an attachment to an item.
To ensure consistent results, always save an item before adding or removing objects in the Attachments collection of the item.
Example
The following Visual Basic for Applications (VBA) example creates a new mail message, attaches a Q496.xls as an attachment (not a link), and gives the attachment a descriptive caption.
Visual Basic for Applications |
---|
|
See Also
- Outlook Object Model Reference
- Attachments Object Members
- AppointmentItem Object
- ContactItem Object
- DocumentItem Object
- MailItem Object
- MeetingItem Object
- PostItem Object
- ReportItem Object
- TaskItem Object
- TaskRequestAcceptItem Object
- TaskRequestDeclineItem Object
- TaskRequestItem Object
- TaskRequestUpdateItem Object