Click to Rate and Give Feedback
MSDN
MSDN Library
Office Development
Outlook 2007
Attachment Object
 Attachment Object
Attachment Object
Represents a document or link to a document contained in an Outlook item.

Remarks

Use Attachments (

index), where index is the index number, to return a single Attachment object.

Use the Add method to add an attachment to an item.

Example

The following Visual Basic for Applications (VBA) example creates a new mail message, attaches Q496.xls as an attachment (not a link), and gives the attachment a descriptive caption.

Visual Basic for Applications
Set myItem = Application.CreateItem(olMailItem)
Set myAttachments = myItem.Attachments
myAttachments.Add "C:\My Documents\Q496.xls", _
    olByValue, 1, "4th Quarter 1996 Results Chart"



Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker