Adding an Attachment to a Message : Email Attachment « Outlook « VBA / Excel / Access / Word






Adding an Attachment to a Message

 
Sub attach()
    Dim myMessage As MailItem
    Set myMessage = Application.CreateItem(ItemType:=olMailItem)

    myMessage.Attachments.Add _
        Source:="C:\g.ppt", _
        Position:=1, DisplayName:="Downsizing Presentation"
End Sub

 








Related examples in the same category

1.Placing a PowerPoint Slide in an Outlook Message