• Outlook User
  • New Outlook app
  • Outlook.com
  • Outlook Mac
  • Outlook & iCloud
  • Developer
  • Microsoft 365 Admin
    • Common Problems
    • Microsoft 365
    • Outlook BCM
    • Utilities & Addins

How to Change the Font used for Outlook's RSS Feeds

Slipstick Systems

› Outlook › Rules, Filters & Views › How to Change the Font used for Outlook’s RSS Feeds

Last reviewed on March 5, 2020     2 Comments

Applies to: Outlook (classic), Outlook 2007, Outlook 2010

A security update disabled the Run a script option in the rules wizard in Outlook 2010 and all newer Outlook versions. See Run-a-Script Rules Missing in Outlook for more information and the registry key to fix restore it.

One of the tips we shared with our Outlook Daily Tips readers was how to use a Run a Script Rule to change the font used with RSS feeds.

Note that this will not work with Outlook 2007 RSS Feeds as it does not support PostItems in Run a Script rules. You can use Run a script rules with MailItems. You need to use ItemAdd event handler with Outlook 2007's RSS Feeds.

A user disliked Calibri font and wanted to change it but gave up after changing fonts "everywhere" in both Outlook and Internet Explorer and not affecting the RSS feed font. He posted the question in a forum and no one there knew either, so I asked the people who worked on the RSS feature at Microsoft. The answer: The font is not exposed to end-users.

The user thought that maybe it would be possible to do it using a Run-a-script rule but had no idea how to write the script. Outlook Developer MVP Michael Bauer of https://vboffice.net/ supplied the code to make it work. (Michael has quite a few useful code samples on his site BTW.)

We first check the message source so we can see how the font is set.

<!-- body {font-family:"Calibri";} -->

Because its hard-coded in the message, changing fonts in Outlook won't help; we need to change the message source. Fortunately, a run a script rule can change it.

The Solution

Begin by pasting the code into ThisOutlookSession in the VB Editor.

Open the VB Editor (Alt+F11), expand the folders on the left to locate ThisOutlookSession, then double click to open it on the right side of the screen. Copy the code and paste it into ThisOutlookSession. The code colors should be black, blue and green. If any lines are red, there is a error.

Public Sub ChangeRSSFont(Item As PostItem)
  Dim b$, NewFont$, OldFont$
  
  OldFont = "{font-family:" & Chr(34) & "Calibri" & Chr(34) & ";}"
  NewFont = "{font-family:" & Chr(34) & "Times New Roman" & Chr(34) & ";}"
  
  b = Item.HTMLBody
  b = Replace(b, OldFont, NewFont, , , vbTextCompare)
  Item.HTMLBody = b
  Item.Save
End Sub

Next, you'll create a Rule that applies to any RSS feed, with the Run a Script action, selecting the ChangeRSSFont macro.
Use a Run a Script Rules to change the font
As new RSS feeds arrive, the font will be changed from Calibri the font of your choosing (Times New Roman, in our sample).

Can you change more than the font? Sure. It's just CSS so you can use any CSS attribute that is supported in the Body tag.

One useful change is to a larger font. For this you will add the font-size attribute to the NewFont code:

NewFont = "{font-family:" & Chr(34) & "Times New Roman" & Chr(34) & ";font-size:14pt;}"

Any valid font-size will work, including %, pt, px, large, or larger.

 

Changing Email Fonts

Note: This is supported by the Run a Script rule in all versions of Outlook. If you don't have the run a script action, see "Run-a-Script Rules Missing in Outlook"

You can use also use this code to change the fonts on incoming email messages, but it will be hit-or-miss as each client uses different, often multiple, font-families.

First, you will need to change "(Item As PostItem)" to "(Item As MailItem)" and get the correct line for the OldFont from the message source and format the NewFont appropriately.

Because the code can vary so much and because when multiple fonts are listed, the first is used if it exists, you can replace just the first part of the attribute and it will apply to most messages using the old font. You could even replace just the font name, but this could have unexpected results.

To replace just this part of the code:
font-family:"Calibri"

Your NewFont and OldFont code will look like this:


  OldFont = "font-family:" & Chr(34) & "Calibri" & Chr(34)
  NewFont = "font-family:" & Chr(34) & "Times New Roman" & Chr(34)

To use, paste the code below into the VBA Editor, change the fonts as needed then create a Rule using the Run a Script action, selecting the ChangeMailFont macro.

As messages arrive meeting your conditions, the font will be changed from Calibri the font of your choosing (Comic Sans in this sample).

Public Sub ChangeMailFont(Item As MailItem)
  Dim b$, NewFont$, OldFont$
  
  OldFont = "font-family:" & Chr(34) & "Calibri" & Chr(34)
  NewFont = "font-family:" & Chr(34) & "Comic Sans" & Chr(34)

  
  b = Item.HTMLBody
  b = Replace(b, OldFont, NewFont, , , vbTextCompare)
  Item.HTMLBody = b
  Item.Save
End Sub

Testing the Macro

Use this stub macro to test your code. Select a message, then run this macro. It calls the macro that actually makes the changes.

Sub TestMacro()
Dim objApp As Outlook.Application
Dim objItem As Object ' MailItem
Set objApp = Application
Set objItem = objApp.ActiveExplorer.Selection.Item(1)

'macro name you want to run goes here
ChangeMailFont objItem

End Sub


Note that this is a work in progress and at this time works only on the RSS feeds that are delivered to a subfolder named RSS.

Use an ItemAdd event with Outlook 2007

 

Using ItemAdd handler

This code runs when Outlook starts and processes new items (RSS feeds in this case) as they arrive and includes the font-size code, which you can remove (leaving just ";}", if desired. It will work with any version of Outlook (change the folder you are watching), but is required if you want to change Outlook 2007 RSS feeds.

Option Explicit

Private WithEvents olPostItems As Items

Private Sub Application_Startup()
  Dim objNS As NameSpace
  Dim objRss As Outlook.MAPIFolder
  Dim objRSSFolder As Outlook.MAPIFolder
  
    Set objNS = Application.Session
    Set objRss = objNS.GetDefaultFolder(olFolderRssFeeds)
    Set objRSSFolder = objRss.Folders.Item("RSS")
    Set olPostItems = objRSSFolder.Items

  Set objNS = Nothing
End Sub

Public Sub olPostItems_ItemAdd(ByVal Item As Object)

  Dim b$, NewFont$, OldFont$
  If LCase(Item.MessageClass) = "ipm.post.rss" Then
  NewFont = "{font-family:" & Chr(34) & "Times New Roman" & Chr(34) & ";font-size:14pt;}"
  
  OldFont = "{font-family:" & Chr(34) & "Calibri" & Chr(34) & ";}"
  b = Item.HTMLBody
  b = Replace(b, OldFont, NewFont, , , vbTextCompare)
  Item.HTMLBody = b
  Item.Save
  End If
End Sub

More Information

More Run a Script Samples:

  • Autoaccept a Meeting Request using Rules
  • Automatically Add a Category to Accepted Meetings
  • Blocking Mail From New Top-Level Domains
  • Convert RTF Messages to Plain Text Format
  • Create a rule to delete mail after a number of days
  • Create a Task from an Email using a Rule
  • Create an Outlook Appointment from a Message
  • Create Appointment From Email Automatically
  • Delegates, Meeting Requests, and Rules
  • Delete attachments from messages
  • Forward meeting details to another address
  • How to Process Mail After Business Hours
  • Keep Canceled Meetings on Outlook's Calendar
  • Macro to Print Outlook email attachments as they arrive
  • Move messages CC'd to an address
  • Open All Hyperlinks in an Outlook Email Message
  • Outlook AutoReplies: One Script, Many Responses
  • Outlook's Rules and Alerts: Run a Script
  • Process messages received on a day of the week
  • Read Outlook Messages using Plain Text
  • Receive a Reminder When a Message Doesn't Arrive?
  • Run a script rule: Autoreply using a template
  • Run a script rule: Reply to a message
  • Run a Script Rule: Send a New Message when a Message Arrives
  • Run Rules Now using a Macro
  • Run-a-Script Rules Missing in Outlook
  • Save all incoming messages to the hard drive
  • Save and Rename Outlook Email Attachments
  • Save Attachments to the Hard Drive
  • Save Outlook Email as a PDF
  • Sort messages by Sender domain
  • Talking Reminders
  • To create a rule with wildcards
  • Use a Macro to Copy Data in an Email to Excel
  • Use a Rule to delete older messages as new ones arrive
  • Use a run a script rule to mark messages read
  • Use VBA to move messages with attachments
How to Change the Font used for Outlook's RSS Feeds was last modified: March 5th, 2020 by Diane Poremsky

Related Posts:

  • A simple run a rule script marks Outlook messages read when the messag
    Use a run a script rule to mark messages read
  • Run a script rule: Reply to a message
  • Selectively change message format when replying
  • Create Appointment From Email Automatically

About Diane Poremsky

A Microsoft Outlook Most Valuable Professional (MVP) since 1999, Diane is the author of several books, including Outlook 2013 Absolute Beginners Book. She also created video training CDs and online training classes for Microsoft Outlook. You can find her helping people online in Outlook Forums as well as in the Microsoft Answers and TechNet forums.

Subscribe
Notify of
2 Comments
newest
oldest most voted
Inline Feedbacks
View all comments

Ron R. (@guest_181996)
February 16, 2014 12:43 pm
#181996

Currently Outlook 2010 Win7. I use 3 different email addresses, one profile, one pst file, 3 accounts. I would like when I receive mail to have the emails from the 3 be colored differently for easy identification. I remember in outlook express, I could do this. I don't see an option/feature for this in Rules. Can you help? Thanks, Ron

0
0
Reply
Diane Poremsky (@guest_182006)
Reply to  Ron R.
February 16, 2014 2:28 pm
#182006

Create a customized view using Conditional Formatting to highlight messages by account. See https://www.slipstick.com/tutorial/use-automatic-formatting-to-highlight-messages/ for instructions.

0
0
Reply

Visit Slipstick Forums.
What's New at Slipstick.com

Latest EMO: Vol. 30 Issue 15

Subscribe to Exchange Messaging Outlook






Support Services

Do you need help setting up Outlook, moving your email to a new computer, migrating or configuring Office 365, or just need some one-on-one assistance?

Our Sponsors

CompanionLink
ReliefJet
  • Popular
  • Latest
  • Week Month All
  • Use Classic Outlook, not New Outlook
  • How to Remove the Primary Account from Outlook
  • Disable "Always ask before opening" Dialog
  • Adjusting Outlook's Zoom Setting in Email
  • This operation has been cancelled due to restrictions
  • Remove a password from an Outlook *.pst File
  • Reset the New Outlook Profile
  • Maximum number of Exchange accounts in an Outlook profile
  • Save Attachments to the Hard Drive
  • How to Hide or Delete Outlook's Default Folders
  • Google Workspace and Outlook with POP Mail
  • Import EML Files into New Outlook
  • Opening PST files in New Outlook
  • New Outlook: Show To, CC, BCC in Replies
  • Insert Word Document into Email using VBA
  • Delete Empty Folders using PowerShell
  • Warn Before Deleting a Contact
  • Classic Outlook is NOT Going Away in 2026
  • Use PowerShell to Delete Attachments
  • Remove RE:, FWD:, and Other Prefixes from Subject Line
Ajax spinner

Recent Bugs List

Microsoft keeps a running list of issues affecting recently released updates at Fixes or workarounds for recent issues in classic Outlook (Windows).

For new Outlook for Windows: Fixes or workarounds for recent issues in new Outlook for Windows .

Outlook for Mac Recent issues: Fixes or workarounds for recent issues in Outlook for Mac

Outlook.com Recent issues: Fixes or workarounds for recent issues on Outlook.com

Office Update History

Update history for supported Office versions is at Update history for Office

Outlook Suggestions and Feedback

Outlook Feedback covers Outlook as an email client, including Outlook Android, iOS, Mac, and Windows clients, as well as the browser extension (PWA) and Outlook on the web.

Outlook (new) Feedback. Use this for feedback and suggestions for Outlook (new).

Use Outlook.com Feedback for suggestions or feedback about Outlook.com accounts.

Other Microsoft 365 applications and services




New Outlook Articles

Google Workspace and Outlook with POP Mail

Import EML Files into New Outlook

Opening PST files in New Outlook

New Outlook: Show To, CC, BCC in Replies

Insert Word Document into Email using VBA

Delete Empty Folders using PowerShell

Warn Before Deleting a Contact

Classic Outlook is NOT Going Away in 2026

Use PowerShell to Delete Attachments

Remove RE:, FWD:, and Other Prefixes from Subject Line

Newest Code Samples

Insert Word Document into Email using VBA

Warn Before Deleting a Contact

Use PowerShell to Delete Attachments

Remove RE:, FWD:, and Other Prefixes from Subject Line

Change the Mailing Address Using PowerShell

Categorize @Mentioned Messages

Send an Email When You Open Outlook

Delete Old Calendar Events using VBA

Use PowerShell or VBA to get Outlook folder creation date

Rename Outlook Attachments

VBA Basics

How to use the VBA Editor

Work with open item or selected item

Working with All Items in a Folder or Selected Items

VBA and non-default Outlook Folders

Backup and save your Outlook VBA macros

Get text using Left, Right, Mid, Len, InStr

Using Arrays in Outlook macros

Use RegEx to extract message text

Paste clipboard contents

Windows Folder Picker

Custom Forms

Designing Microsoft Outlook Forms

Set a custom form as default

Developer Resources

Developer Resources

Developer Tools

VBOffice.net samples

SlovakTech.com

Outlook MVP David Lee

Repair PST

Convert an OST to PST

Repair damaged PST file

Repair large PST File

Remove password from PST

Merge Two Data Files

Sync & Share Outlook Data

  • Share Calendar & Contacts
  • Synchronize two computers
  • Sync Calendar and Contacts Using Outlook.com
  • Sync Outlook & Android Devices
  • Sync Google Calendar with Outlook
  • Access Folders in Other Users Mailboxes

Diane Poremsky [Outlook MVP]

Make a donation

Mail Tools

Sending and Retrieval Tools

Mass Mail Tools

Compose Tools

Duplicate Remover Tools

Mail Tools for Outlook

Online Services

Calendar Tools

Schedule Management

Calendar Printing Tools

Calendar Reminder Tools

Calendar Dates & Data

Time and Billing Tools

Meeting Productivity Tools

Duplicate Remover Tools

Productivity

Productivity Tools

Automatic Message Processing Tools

Special Function Automatic Processing Tools

Housekeeping and Message Management

Task Tools

Project and Business Management Tools

Choosing the Folder to Save a Sent Message In

Run Rules on messages after reading

Help & Suggestions

Submit Outlook Feature Requests

Slipstick Support Services

Buy Microsoft 365 Office Software and Services

Visit Slipstick Forums.

What's New at Slipstick.com

Home | Outlook User | Exchange Administrator | Office 365 | Outlook.com | Outlook Developer
Outlook for Mac | Common Problems | Utilities & Addins | Tutorials
Outlook & iCloud Issues | Outlook Apps
EMO Archives | About Slipstick | Slipstick Forums
Submit New or Updated Outlook and Exchange Server Utilities

Send comments using our Feedback page
Copyright © 2025 Slipstick Systems. All rights reserved.
Slipstick Systems is not affiliated with Microsoft Corporation.

wpDiscuz

Sign up for Exchange Messaging Outlook

Our weekly Outlook & Exchange newsletter (bi-weekly during the summer)






Please note: If you subscribed to Exchange Messaging Outlook before August 2019, please re-subscribe.

Never see this message again.

You are going to send email to

Move Comment