Re: Writing text to the "read message"
- From: "Ken Slovak - [MVP - Outlook]" <kenslovak@xxxxxxxx>
- Date: Sat, 3 Jan 2009 12:39:22 -0500
If this code is running in the form then use Item.Body for the plain text contents and Item.HTMLBody for any HTML contents (which must be in correct HTML syntax).
If the code is running in the Outlook VBA project or elsewhere and the email where you want to place the text is the ActiveInspector then use Application.ActiveInspector.CurrentItem.Body or .HTMLBody. With standalone or COM addin code instantiate an Outlook.Application object (in a COM addin from the trusted Application object that's passed to you) and use that instead of Application.
Which book did you buy?
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"cmonroe21" <u48566@uwe> wrote in message news:8f9973dd2558a@xxxxxx
Hi there. I have a project that I have been unable to get help on, so I went
out and bought MS Outlook 2007 Programming the book, and am still having
problems :(
What I'm doing here is creating an email with a number of fields and controls
for the composer to use. The recipient of this email is going to be a
computer that can extract data from text in the email message box. So, I
need to be able to print the user-selected contents of the controls (via .
Value or .Text ???) in text form onto the "read message" email message. The
forms are created, I just don't know how to access the Read Message box.
Thank you so much! I look forward to hearing from you!
.
- Follow-Ups:
- Re: Writing text to the "read message"
- From: cmonroe21 via OfficeKB.com
- Re: Writing text to the "read message"
- References:
- Writing text to the "read message"
- From: cmonroe21
- Writing text to the "read message"
- Prev by Date: Re: Can I disable Outlook warning from Excel macro "Send" method
- Next by Date: Re: Including an attachment box via code (and a textbox?)
- Previous by thread: Writing text to the "read message"
- Next by thread: Re: Writing text to the "read message"
- Index(es):
Relevant Pages
|