Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, and 2013. 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: Pasting a Comment into Your Worksheet.

Pasting a Comment into Your Worksheet

by Allen Wyatt
(last updated July 19, 2014)


Excel allows you to add comments to individual cells in a worksheet. I often use comments to included explanatory concepts, or to store alternative information to what is in the worksheet. There have often been times when I've wanted to copy something from a comment and place it into a cell on the worksheet. These steps are helpful in this regard:

  1. Right-click the cell whose comment you want to copy and paste into a cell. You'll see a Context menu for the cell.
  2. Choose Edit Comment from the Context menu. Excel displays the comment, with the insertion point in the comment balloon.
  3. Select the text in the comment that you want to paste into a cell. Make sure you do not select the author text at the beginning of the comment or the paragraph mark at the end.
  4. Use Ctrl+X to cut the text or Ctrl+C to copy the text to the Clipboard.
  5. Select the cell into which you want to paste the comment.
  6. If you want to paste the comment text as a formula, press the equal sign.
  7. Press Ctrl+V to paste the information to the cell.

If you performed step 6 to indicate you were creating a formula, press Enter to finish the paste. Excel pastes your comment text into the cell. You can now delete the comment from the source cell (if desired) by right-clicking the cell and choosing Delete Comment.

Excel also provides a different way to "open" a comment so it can be edited—by pressing Shift+F2. This could be used to replace steps 1 and 2, above, by simply selecting the cell whose comment you want to copy and then pressing Shift+F2. The rest of the steps (3 through 7) could then be followed as noted.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (10943) applies to Microsoft Excel 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Excel here: Pasting a Comment into Your Worksheet.

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. ...


Customizing a Toolbar

Word is quite flexible in how you can configure the user interface. This tip explains how you can customize a toolbar so ...

Discover More

Protecting Worksheets from Deletion

If you share a workbook with others in your office, you will probably want to make sure that some of the worksheets don't ...

Discover More

Determining the Current Directory

When creating macros, it is often necessary to know which directory is the default. Here's how you can find out by using ...

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

Changing Comment Color for a Single User

The default color used to format comments is determined by Windows, not Excel. You can adjust the formatting of ...

Discover More

Formatting Text in Comment Boxes

Want to make your worksheet comments appear a certain way? It's easy to do using techniques you already are familiar with.

Discover More

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

View most recent newsletter.


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}] 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 9 + 9?

2014-07-20 16:14:01

Thomas Papavasiliou

The task is relatively simple if you have a few cells to process. In case of large number of cells to process, a macro may be handy. In addition if the comments contain line feed characters you may need to split them to individual cells.
The following macro does the job.

Sub comments_to_cells()

'Macro written 10/12/2009 by Thomas Papavasiliou

'This macro, based on the selected single column area, selects the cells containing comments
'Transfers, as text, each comment to an empty to the right column, replacing [space] and line feed [chr$(10)] characters by #
'Finally splits the new column's contents, to cells using [#] as split character

'Getting data of used area and selection
With ActiveSheet.UsedRange
sr = .Row
sc = .Column
er = .Rows.Count + sr - 1
ec = .Columns.Count + sc - 1
End With

ad0 = Selection.Address
C = Range(ad0).Column

'Single column selection control
If Range(ad0).Columns.Count > 1 Then
msg = "Selection extends to more than one column. Macro ends"
ttl = "Large selection..."
MsgBox msg, vbOKOnly + vbCritical, ttl
Exit Sub
End If

'First part. Selecting cells containing comments and replacing space or chr(10) characters with #
On Error Resume Next

'No comment cell containing selection control
If Selection.SpecialCells(xlCellTypeComments).Count = 0 Then
msg = "Selection does not contain any cells with comment. Macro ends"
ttl = "No comment containing cells..."
MsgBox msg, vbOKOnly + vbCritical, ttl
Exit Sub
End If

On Error GoTo 0

Application.ScreenUpdating = False

For Each cell In Selection
ad1 = cell.Address
xtx = "" 'Initialization.
xtx = Range(ad1).Comment.Text 'Getting comment text
xtx = Replace(xtx, " ", "#") 'Replacing space with #
xtx = Replace(xtx, Chr$(10), "#") 'Replacing Chr$(10) with #
Range(ad1).Offset(0, ec - C + 2) = xtx 'Transferring processed text to an empty column

'Second part splitting to cells using [#] as separator character
Selection.Offset(0, ec - C + 2).Select
For Each cell In Selection
If IsDate(cell) Then
tmp = Format(cell, "dd/mmm/yyyy") & "#"
tmp = cell & "#"
End If
sp = 1 'sp = start point
i = 1
ep = 0 'ep = end point
Do While Len(tmp) > sp - 1
ep = Application.WorksheetFunction.SearchB("#", tmp, sp)
cell.Offset(0, i) = Mid(tmp, sp, ep - sp) 'Splitting to cells
i = i + 1
sp = ep + 1


Application.ScreenUpdating = True

End Sub

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

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.