Import bold face fonts

E

Edward

Hi everyone
I'm using VBA to import the bodytext of an email message from Word
everything works find except for it dosn't keep the bold face font when it
imports to Outlook.
I have a section in my word document which has bold font but when i use the
following code
..
..
..
.body=Activedocument.convert
..
..
..
It converts everytjing with correct formatting but dons't keep the bold
fonts .
Is there any soultion for this?
 
M

Michael Bauer [MVP - Outlook]

If you write text into the Body property you create a plain text e-mail,
which cannot have formattings.

Easiest approach would be using Word as e-mail editor (or Outlook 07 only).
Then MailItem.Getinspector.WordEditor returns a Word.Document object with
all the properties that your source document has.

If that doesn't work for you you need to write the HTML code yourself into
the MailItem.HTMLBody property.

--
Best regards
Michael Bauer - MVP Outlook
Synchronize Outlook Categories:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>

Am Fri, 4 Jan 2008 15:52:01 -0800 schrieb Edward:
 

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