Solved

Positioning an email attachment in VBA

Posted on 2004-10-14
4
463 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 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

726 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