Changing the Comment Indicator Color

Written by Allen Wyatt (last updated December 2, 2022)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365


1

Francois wonders if it is possible to change the color of the triangle that appears in the upper-right corner of a cell when there is a comment associated with the cell. The triangle is red, by default, but Francois would like it to be a different color that is easier for him to see.

There are some things that, it seems, are simply hard-coded into Excel and cannot be changed. The color of the comment indicator is one of those items. Even playing with the various color settings in Windows had no effect on the indicators.

This has been an issue that has been asked about and discussed for years in the Excel community. One potential workaround is presented by MVP Debra Dagliesh at this page:

http://www.contextures.com/xlcomments03.html#Indicator

The solution presented there was actually designed for printing. (Excel doesn't print comment indicators when you print a worksheet, but you may want indicators printed.) The macro that Debra presents can be easily modified so that the graphic used is any color desired.

Of course, the drawback to such an approach is that it adds a graphic to your worksheet for each comment you have. If you have lots of comments in the worksheet, you'll end up having lots of graphics. In addition, the graphics may not "stay put" as you edit the worksheet, adding and deleting cells. If you add or delete comments, then you'll also need to delete graphics (Debra provides a macro to do this) and rerun the macro to add graphics back.

Another potential option is to use a macro to color the background of any cell that contains a comment. The following macro looks at whatever cells you have selected and then changes the color of any cell containing a comment.

Sub ColorComments()
    Dim commentCell As Range
    On Error GoTo ErrorHandler 'Deal with empty selection

    Selection.SpecialCells(xlCellTypeComments).Select
    On Error GoTo 0
    For Each commentCell In Selection.Cells
        commentCell.Interior.ColorIndex = 36
    Next
    Range("A1").Select
    Exit Sub
ErrorHandler:
   ' Error Handler is deliberately empty
End Sub

The drawback to this macro is that it is not easy to "unmark" any cells if comments are removed. You'll also need to rerun the macro as you add new comments to your worksheet.

Note:

If you would like to know how to use the macros described on this page (or on any other page on the ExcelTips sites), I've prepared a special page that includes helpful information. Click here to open that special page in a new browser tab.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (3498) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Aligning Borders with the Page Margins

Add a border to a paragraph and you may find that it extends to the left and right of the regular text margins. To pull ...

Discover More

Symbols in Words Added to the Dictionary

Adding special characters to otherwise normal words, such as a company name, may be necessary. However, this could affect ...

Discover More

Selecting a Specific Cell in a Macro

Need to use a macro to select a specific cell in a different workbook? It's not as straightforward of a proposition as ...

Discover More

Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel 2013 Data Analysis and Business Modeling today!

More ExcelTips (ribbon)

Pasting a Comment into Your Worksheet

Excel allows you to not only put information into cells, but into comments attached to those cells. Here's how to copy ...

Discover More

Locking the Size of Pictures in Comments

Excel allows you to place pictures inside of comments. If you do this, you may have experienced a situation where the ...

Discover More

Keyboard Shortcut for Comments

Adding comments or notes to the cells in your worksheets can help to document different aspects of that worksheet. Adding ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is two less than 3?

2019-02-13 13:12:49

Alan Striegel

The terminology has very recently changed. Excel now uses the term 'note' for what has always been called a 'comment' and it now uses 'comment' for a different purpose.


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.