Solved

Excel VBA - Outook Message  different fonts

Posted on 2014-04-07
3
164 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

749 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