apollo911
Programmer
- Nov 19, 2008
- 4
I'm trying to use a VBA script to generate Outlook Mail Items using a Word Document - ( a Mail Merge with Attachments) .
However the script I have uses the body tag to insert the source document text ...
.Subject = mysubject
.Body = Source.Sections(1).Range.Text
where Source is the open Word Document..
but I want to use .HTMLBody so as not to lose all formatting..
how can I include Source.Sections(1).Range.Text
in for instance a <p> tag?
I guess I'm looking for the VBA equivalent of echo in PHP
where I'd write
<p> <? echo Source.Sections(1).Range.Text ?> </p>
However the script I have uses the body tag to insert the source document text ...
.Subject = mysubject
.Body = Source.Sections(1).Range.Text
where Source is the open Word Document..
but I want to use .HTMLBody so as not to lose all formatting..
how can I include Source.Sections(1).Range.Text
in for instance a <p> tag?
I guess I'm looking for the VBA equivalent of echo in PHP
where I'd write
<p> <? echo Source.Sections(1).Range.Text ?> </p>