?
Solved

Positioning an email attachment in VBA

Posted on 2004-10-14
4
Medium Priority
?
467 Views
Last Modified: 2008-02-01
I am adding an attachment to an outlook email via VBA and want to manipulate the position of the attachment within the email because it is ending up in the middle of the email body.  I understand that there is a position argument within attachment.add that may help me, but I can't find what the possible values of this property are.

 
0
Comment
Question by:msanzenb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 48

Expert Comment

by:Mikal613
ID: 12309088
0
 
LVL 76

Accepted Solution

by:
David Lee earned 1500 total points
ID: 12315052
The position parameter only applies to RTF formatted messages and specifies the character position within the message that the attachment is to be placed at.  You can pass it -1 to place the attachment at the begining of the message.  If you want to place it at the end then you can use the Len() function to get the length of the message body and use it as the position argument.  
0
 

Author Comment

by:msanzenb
ID: 12322924
Thanks so much!
0
 
LVL 76

Expert Comment

by:David Lee
ID: 12323670
You're welcome.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month11 days, 10 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question