Solved

Positioning an email attachment in VBA

Posted on 2004-10-14
4
446 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
  • 2
4 Comments
 
LVL 48

Expert Comment

by:Mikal613
ID: 12309088
0
 
LVL 76

Accepted Solution

by:
David Lee earned 500 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

785 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