Basic IE Document Method (I Think)

T

Thomas R. Shannon

I'm trying to do something fairly simply. I'm trying to set the Body of a
form in Outlook to the HTML in the body of the current IE window. This
would be similar to selecting all in the IE window and pasting into the
Outlook item's body (which works). I've got the following command:

objItem.Body = objIE.Document.Body.innerHTML

This inserts the actual HTML code. If I make it this:

objItem.Body = objIE.Document.Body.innerText

I get the text of the body but lose the HTML formatting. What method gives
the Body of the IE document with the HTML formatting, images, etc...?

Thanks,
Tom S.
 
D

Doug Robbins - Word MVP

Hi Thomas,

I think that you are off-topic in a newsgroup for Word. You should post
your question to one of the microsoft.public.outlook newsgroups.

--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
T

Thomas R. Shannon

I'm sorry, Doug. I saw the vba.beginner part and not the word part.

Tom S.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top