Consulting

Results 1 to 3 of 3

Thread: Attachment Location

  1. #1
    VBAX Tutor
    Joined
    Dec 2006
    Posts
    271
    Location

    Attachment Location

    I have the following code to send an email with an attachment (fName)

    [VBA]With MItem
    .To = eMail
    .Subject = subj
    .Body = msg
    .Importance = 2 'high
    .Attachments.Add fName, 4
    .Display
    '.Send
    End With 'mail item[/VBA]

    Looking at the syntax from the msdn site here
    http://msdn.microsoft.com/en-us/library/aa217214.aspx there is an option for position, but there is no mention what the values are supposed to be.

    .Add(Source, [Type], [Position], [DisplayName])

    I want the attachment to be positioned below the message

    Any ideas what the values are?

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Documentation on it seems sparse ... so experiment.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Jan 2006
    Posts
    28
    Location

    Smile

    Good morning lifeson
    Quote Originally Posted by lifeson
    Looking at the syntax from the msdn site here
    http://msdn.microsoft.com/en-us/library/aa217214.aspx there is an option for position, but there is no mention what the values are supposed to be.
    This knowledge base article seems to indicate that this value is supposed to be an integer which is to reflect at which character of text the object is to be shown.
    http://support.microsoft.com/kb/198897

    HTH

    DominicB

Posting Permissions

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