PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Generating emails with formatting.
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Generating emails with formatting.
![]() |
Generating emails with formatting. |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi all
I have some code which creates an email and fills it in with some standard text. At present, the code does not allow me to include formatting within the body of the email (e.g. to have paragraphs or sentences which are different in colour, bold italic etc). It would be very useful if I could specify formatting. At the moment I am using the following code to create the email: Dim Out As Object Set Out = CreateObject("Outlook.Application") Dim Email As Object Set Email = Out.CreateItem(olMailItem) And specifying the text for the email body in the .Body property. Is there a different way to do this which will allow me to specify formatting, for example, using html? Thanks in advance for your help David Cleave |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Hi David,
> Is there a different way to do this which will allow me to specify > formatting, for example, using html? instead of the Body- use the HTMLBody-Property. -- Viele Grüße Michael Bauer |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Thank you Michael. I hadn't noticed the HTMLBody property before.
David "Michael Bauer" wrote: > Hi David, > > > Is there a different way to do this which will allow me to specify > > formatting, for example, using html? > > instead of the Body- use the HTMLBody-Property. > > -- > Viele Grüße > Michael Bauer > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

