![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
i have the following code that opens a new mail and adds "UNCLASSIFIED" to the start of the subject and body. What i need is some code that will format the the body instance of the word to be bold and larger than the rest of the text that will appear in the body (organisational rules).
Sub Unclass_Msg() Dim msg As Outlook.MailItem Set msg = Application.CreateItem(olMailItem) With msg .Subject = "UNCLASSIFIED - " .Body = "UNCLASSIFIED" .Display End With End Sub |
Ads |
#2
|
|||
|
|||
![]()
Good afternoon!
To change the font you would need to use the following: Code:
.HTMLBody = "bFONT size='5'UNCLASSIFIED/FONT/b" .Body opens up a plain text e-mail. When you use .HTMLBody you can incorporate HTML tags such as b for Bold and FONT to determine the size. Hope this help! Last edited by NDuarte : May 31st 12 at 10:32 PM. Reason: Add Code Tags |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Change font in the body of a contact card? | Jilli | Outlook - Using Contacts | 1 | March 30th 10 10:24 PM |
write and format a piece of text in the body using vba | Screaming Eagles 101 | Outlook and VBA | 4 | November 14th 09 03:26 AM |
Changing the font body of an outlook task in vba | Gary F | Outlook and VBA | 2 | June 7th 06 09:20 PM |
vba to change font of notes | Charlie | Outlook and VBA | 3 | March 9th 06 07:51 AM |
How do I change the font of a mtg body in calendar details print? | Mike Blasius | Outlook - Calandaring | 0 | February 15th 06 03:53 PM |