View Single Post
  #1  
Old June 17th 08, 12:47 AM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How do I use formatted text from word document in email body

See http://www.outlookcode.com/article.aspx?ID=52 for your options with regard to the "object model guard" security prompts.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"duckfeeder" wrote in message ...
Thanks Sue

The code works a treat, much appreciated.

Any idea on how to stop "a program is trying to send email on your behalf"

This could be problem if trying to send lots of emails!!

Thanks

Rob

"Sue Mosher [MVP-Outlook]" wrote:

If you're creating a new message, you might want to try the "Office envelope" approach demonstrated in the sample at http://www.outlookforms.org/codedetail.aspx?id=1333.



"duckfeeder" wrote in message ...
Sorry, not used VB6 for a couple of years!!

the following uses the word text without formatting

mItem.Body = oWordDoc.Content

how can I keep the formatting?

Many thanks


Ads