Link to home
Start Free TrialLog in
Avatar of chrisfixit
chrisfixit

asked on

How to implement HTMLBody in Outlook OlMailItem

I am usng a VB script to create an Outlook email taking the message body from an open Word Document..

the current code is..

    Set oItem = oOutlookApp.CreateItem(olMailItem)
    With oItem
        .Subject = mysubject
        .Body = Source.Sections(j).Range.Text..

I want to use HTMLBody instead.. how do I get Source.Sections(j).Range.Text to appear in say a <p>
tag?
ASKER CERTIFIED SOLUTION
Avatar of David Lee
David Lee
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chrisfixit
chrisfixit

ASKER

Thanks but in the end I saved the Doc as HTML then used the text File as soucre for HTMLBody.
You're welcome.