Skip to main content

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


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:


Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions…
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

Description


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Comments (17)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
how do you make it ignores none merged cells and just add notes to only the merged cells selected?
This comment was minimized by the moderator on the site
Hello, iresolver
To solve your problem, please apply the below code:
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
        If xRgEach.MergeCells Then
            With xRgEach
            .ClearComments
            .AddComment
            .Comment.Text Text:=xText
            End With
        End If
    Next xRgEach
End Sub


Please have a try, hope it can help you!
This comment was minimized by the moderator on the site
Excelente, gracias
This comment was minimized by the moderator on the site
Excelente aporte, gracias por el dato !!!!
This comment was minimized by the moderator on the site
Can anyone help me in VBA Code,
I want that I do multiple comments and have option to add picture in each cell without doing formatting again and again.
and then picture of that cell will save in folder of excel file with same cell name.
I will be thankful to you if anyone helps me in this
This comment was minimized by the moderator on the site
this is really very informative post ..


thanks for the awesome post
digifloor
This comment was minimized by the moderator on the site
for filtered cell it is not working
This comment was minimized by the moderator on the site
Dear me,
The VBA code is now updated. It supports batch insert comment to not only normal range, but also visible cells only in a filtered list.
Thank you for your comment!
This comment was minimized by the moderator on the site
if the sheet in excel is in filter will this apply for only filtered cells????
This comment was minimized by the moderator on the site
[quote]I researed valuable information on this point as I am working on a class project. Thank you posting useful information and its now becoming easier to accomplish this task. font converter online
This comment was minimized by the moderator on the site
That's really helpful. thanks.
This comment was minimized by the moderator on the site
This is just the information I am finding everywhere. Thanks for your blog, I just subscribe your blog. This is a nice blog. Yong http://www.gofastek.com
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
Rate this post:
0   Characters
Suggested Locations