Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to quickly insert a comment to multiple cells in Excel?

In a worksheet, to insert a comment in a cell is very easy, but when you want to insert the same comment into multiple cells at the same time, how could you do?

Insert a comment to multiple cells with Paste Special feature

Insert a comment to multiple cells with VBA code


Auto size comment box to fit content:

The AutoFit Comments utility of Kutools for Excel can help adjusting size of all comments' boxes to fit their content in active worksheet or the whole workbook. See screenshot:

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


Insert a comment to multiple cells with Paste Special feature


In Excel, there is no way to insert multiple comments at the same time. You can, however, copy a comment to multiple cells as follows:

1. Insert your comment in a cell.

2. Select the comment cell and press the Ctrl + C keys to copy it.

3. Then select and right click the range that you would like to batch insert comment, select  Paste Special > Paste Special from the right-clicking menu. See screenshot:

4. In the Paste Special dialog box, check the Comments option, and then click the OK button. See screenshot:

Then same comments are inserted to all selected cells immediately.

Note: This method will insert same comments to all selected cells. If you want to insert same comments to visible cells only of a filtered list, please try the below VBA method.


Insert a comment to multiple cells with VBA code

Supposing you have a filtered list as below screenshot shown. And you just want to batch add comments to all visible cells. Please do as follows.

1. Press the Alt + F11 keys together to open the Microsoft Visual Basic for applications window.

2. In the Mocrosoft Visual Basic for Applications window, please click Insert > Module, and input the following code into the Module:

VBA: Batch inert comment to multiple cells (visible cells only in filtered list)

Sub InsertCommentsSelection()
    Dim xRg As Range
    Dim xRgEach As Range
    Dim xAddress As String
    Dim xText As String
    On Error Resume Next
    xAddress = ActiveWindow.RangeSelection.Address
    Set xRg = Application.InputBox("Please select a range:", "Kutools For Excel", xAddress, , , , , 8)
    If xRg Is Nothing Then Exit Sub
    If xRg.Count > 1 Then
        Set xRg = xRg.SpecialCells(xlCellTypeVisible)
    End If
    xRg.Select
    xText = InputBox("Enter Comment to Add" & vbCrLf & "Comment will be added to all cells in Selection: ", "Kutools For Excel")
    If xText = "" Then
        MsgBox "No comment added", vbInformation, "Kutools For Excel"
        Exit Sub
    End If
    For Each xRgEach In xRg
        With xRgEach
        .ClearComments
        .AddComment
        .Comment.Text Text:=xText
        End With
    Next xRgEach
End Sub

3. Press the F5 key to run the code. In the first popping up Kutools for Excel dialog box, please select the filtered range you want to add comments, and then click the OK button. See screenshot:

4. Then another Kutools for Excel dialog box pops up, please enter your comment into the text box, and then click the OK button.

Now comments are inserted to all visible cells only in selected filtered list as below screenshot shown:

Tips: As below screenshot shown, Kutools for Excel gathers various features of comments. It can help you dealing with different kinds of problems of cell comments.

Kutools for Excel : with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!.



Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.