Solved

Excel VBA - Outook Message  different fonts

Posted on 2014-04-07
3
163 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

840 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