Insert text into message being drafted.

  • Thread starter Thread starter Kevin Mac
  • Start date Start date
K

Kevin Mac

I have a message open that is being drafted. I want to run a macro
(eventually to be an add-in) that will allow for the inserting of
custom-derived html at the top of this existing message body.

A signature will not work for me since some logic will be involved in
deciphering what text to write to the body.

Thus, I need to gain access to the open message's body. How can this
be done? I know how to use Item.HTMLBody; I just need to get the
specific Item of my open message.


Thanks for any assistance provided.


KNM
 
Are you just trying to get a handle to the currently open and active item?
You can do this by using the Application.ActiveInspector method.
 
Eric:

Thanks alot. I was able to get the ActiveInspector and off of this
set a reference to the CurrentItem which gave me access to the Body
and HTMLBody properties. This ultimately allowed me to do what I
needed.

KNM
 
Back
Top