Solved

Excel VBA - Outook Message  different fonts

Posted on 2014-04-07
3
156 Views
Last Modified: 2014-04-07
Hi

In using Excel VBA to send an Outlook message is it possible to control the font size type and color for each line?
0
Comment
Question by:murbro
3 Comments
 
LVL 35

Accepted Solution

by:
Kimputer earned 250 total points
ID: 39984527
Yes, compose the outlook message in html format.
0
 
LVL 39

Assisted Solution

by:nutsch
nutsch earned 250 total points
ID: 39984540
When you create the email, use .htmlbody instead of .body, and set bodyformat to 2 (html).

Set Itm = App.CreateItem(0)
.htmlBody = "<html><body>My Body</body></html>"
.bodyformat = 2
0
 

Author Closing Comment

by:murbro
ID: 39985182
Thanks very much
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now