Results 1 to 2 of 2

Thread: How can you add attachments to outlook express with VB?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2000
    Posts
    1,195

    How can you add attachments to outlook express with VB?

    im using the code


    Code:
    Dim objOutlook As New Outlook.Application
    Dim objOutlookMsg As Outlook.MailItem
    
    ' Create New message
    Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
    
    With objOutlookMsg
        .To = Text3.Text
        .Subject = "Report"
        .Body = "Attachment included"
        .Importance = olImportanceHigh
        
        .Send
    End With

    how can i add an attachment?

  2. #2
    New Member
    Join Date
    Mar 2002
    Posts
    14
    hi,

    your code goes here just add this to the existing code ->

    .Attachments.Add (Source,Type,Position,DisplayName)

    Also VBA Outlook help file is availabel for download at MS Site for free, This is it... get it will be of quite some help to begin with.

    http://support.microsoft.com/default...;en-us;Q162671


    Cheers !!!
    Niraj

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width