Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Aug 2003
    Location
    Stroud, United Kingdom
    Posts
    548
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Oopen Attachment (2003)

    Hi,

    I am trying to open an attachment that is stored in a form when the form is opened, can this be done?

    Fiddling in Outlook VBA i am doing:

    Sub temp()
    Dim m As MailItem, a As Attachment
    Set m = ActiveInspector.CurrentItem
    Set a = m.Attachments(1)
    ' code here to say a.OPEN !!!!
    Set m = Nothing: Set a = Nothing
    End Sub

    Any ideas? I know I would have to script this in VBScript.

    I want the user to be able to open an outlook form, which is basically an email preformatted with subject, and recipients etc, which contains a Word Form, which needs to be filled in and saved before sending.

    Thanks
    Thanks,

    pmatz

  2. #2
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: Oopen Attachment (2003)

    There's no direct attachment open Method in Outlook VBA through 2003. You'll have to save the att. to a temporary location, then instance Word and pass it the path and filename.
    -John ... I float in liquid gardens
    UTC -7ąDS

  3. #3
    4 Star Lounger
    Join Date
    Aug 2003
    Location
    Stroud, United Kingdom
    Posts
    548
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Oopen Attachment (2003)

    Thanks JohnBF

    I feared as much ;o)
    Thanks,

    pmatz

Posting Permissions

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