Issue with Font Change

ABDKAFAN

New Member
Joined
Mar 27, 2013
Messages
22
I have a macro in place which sends out emails from Lotus notes.
I want to change the font of the body from times new Roman to "Arial".Can you please guide me as to how to do that.
The following is the piece of code.
With NRTStyle
.NotesFont = FONT_ROMAN
.FontSize = 12
.NotesColor = COLOR_RED
.Bold = True
End With

Replacing FONT_ROMAN with FONT_ARIAL gives me an error.
Thanks for reading this.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Try this :
Rich (BB code):
With NRTStyle.Font
        .Name = "Arial"
.Color = -16776961
.Bold = True
    End With
 
Upvote 0
With Range("A1:a10").Font
.Bold = True
.ColorIndex = 5
.Italic = True
.Underline = True
End With


Hi Chetanmehra1989,
Thanks for the suggestion.
It looks the code u have given me modifies the font of a range in excel.However,here I am trying to modify the font of the body of an email using rich text.
 
Upvote 0

Forum statistics

Threads
1,216,129
Messages
6,129,051
Members
449,484
Latest member
khairianr

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top