Font control for cell Notes and Comments

Roland Hoelscher

New Member
Joined
Oct 15, 2022
Messages
12
Office Version
  1. 365
Platform
  1. Windows
Is there a way that I can control the font which Excel uses when inserting/adding a Note for a cell? This refers to the Note which pops up when I hover the cursor over a cell.
My reason for asking - I have developed an Excel application which incorporates Excel Notes as a key feature of the application and each Note has many lines of text.
On sheets which have many columns a VBA routine inserts a Note for column A in each row. The Note shows the values of all the other columns in the same row. This eliminates the need for horizontal scrolling (which can seem frustrating).
The font which Excel uses by default for these Notes is a proportional font. I would like to use a non-proportional font since that makes it easier to align the text within each Note.
I'm currently inserting various number of spaces to "somewhat" align the different lines within each Note.
Is there a way to control which font is used by Excel when adding these Notes?
Thank you
1728945887869.png
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Right click to Edit Note. Select Text. Right click to Format Comment. You can format that way. Or, if there are many Notes that you would like to change then you can use VBA.
 
Upvote 0
Code to change the font of the comment in cell A1 may look like this:
VBA Code:
    With Range("A1").Comment.Shape.OLEFormat.Object.Font
        .Name = "arial"
        .Size = 20
    End With
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,154
Members
453,021
Latest member
Justyna P

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