Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Formatting Text in Comment Boxes.

Formatting Text in Comment Boxes

Written by Allen Wyatt (last updated February 29, 2020)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365


1

Adding comments to the various cells in a worksheet can be quite helpful, particularly when it comes to documenting the organization and content of your worksheet. As you start adding more and more information as comments, you may wonder if there is a way to easily format the information in a comment box.

Text in a comment box can be formatted in much the same way as you format text in a text box: select the text, then choose one of the formatting options available from the ribbon or the Context menu. You can easily change typefaces, font sizes, and character attributes, as desired.

If you want to format your text so that various elements line up with each other, your formatting options are a bit more limited. One good approach is to make sure the text you want aligned is formatted using a monospace typeface (such as Courier or Courier New), and then insert spaces in your data to align information on different lines. (Inserting spaces to align text on multiple lines can be tedious, so you may want to actually align the text in a text editor, such as Notepad.)

If your data doesn't have many columns in it, you can also align text by using Ctrl+Tab between columns. This doesn't actually add the tab character to your data; instead it inserts four or five spaces into the text, thereby helping to align data between rows. The number of spaces added is whatever is necessary to move the insertion point right by some multiple of eight characters. (The "column spacing" cannot be changed in Excel.) You can easily verify if you are using a monospace font by how this lines up the columns in your text.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (9311) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Formatting Text in Comment Boxes.

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

Turning Off AutoFill for a Workbook

Don't want people using your workbook to be able to use AutoFill? You can add two quick macros that disable and enable ...

Discover More

Printing a Key Assignment List

When you create custom shortcut keys in Word, you may (at some point) want to get a printout of what those key ...

Discover More

Gradient Prints as Stripes

When you print a graphic that includes a gradient, you may not get exactly the output you expect. This tip examines two ...

Discover More

Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!

More ExcelTips (ribbon)

Comments Don't Appear when Cell is Pointed To

One way that you can view comments in a worksheet is to have them appear when you hover the mouse pointer over a cell. If ...

Discover More

Filtering for Comments (Notes)

Excel makes it easy to filter a data table based on various values in that table. It isn't so easy to filter according to ...

Discover More

Anchoring Comment Boxes in Desired Locations

Want your comment boxes to appear someplace other than the right side of a cell? You may be out of luck, and here's why.

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 one less than 9?

2020-03-06 11:26:26

Bob Williams

Formatting cell comments -- I like to have my own look and that applies to comments also. I have developed a macro that makes all comments on a worksheet look the same. Optionally, the workbook can have a set of named ranges that specify the parameters for the comments. Those specify shape, font, font size, font color, line weight (around the shape), and the fill color.
Some tedious research was done to determine equations that describe how the size of the comment shape should vary with the length of the comment. Here's a sample of a comment so formatted: (see Figure 1 below)
I would be happy to provide the code if you're interested. It's about 600 lines, which some programmer better than I could no doubt make more elegant! I would be happy to have others take advantage of my work.
Bob Williams

Figure 1. 


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.