Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you set text for bold in an email using VBA

Status
Not open for further replies.

Pack10

Programmer
Feb 3, 2010
495
US
I have a routine that formulates an email. Most of it is assigning
text verbage to a string. How can I display it in bold text in the email.
 
Assuming you're using Outlook you can use the .HTMLBody property (instead of the Body which I'll assume you're using now?) of the mail object and pass it valid HTML code to display and emboldened text in the email. Using the HTMLBody allows greater flexibility and control of how your text is displayed in your email.

Hope this helps

Andy
---------------------------------
Zebracorn: 50% Zebra, 50% Unicorn = 100% Real.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top