Skip to main content

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

Author: Xiaoyang Last Modified: 2024-09-03

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:

select  Paste Special > Paste Special from the right-clicking menu

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

check the Comments option in the dialog box

Then same comments are inserted to all selected cells immediately.

same comments are inserted to all selected cells

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.

a screenshot of kutools for excel ai

Unlock Excel Magic with Kutools AI

  • Smart Execution: Perform cell operations, analyze data, and create charts—all driven by simple commands.
  • Custom Formulas: Generate tailored formulas to streamline your workflows.
  • VBA Coding: Write and implement VBA code effortlessly.
  • Formula Interpretation: Understand complex formulas with ease.
  • Text Translation: Break language barriers within your spreadsheets.
Enhance your Excel capabilities with AI-powered tools. Download Now and experience efficiency like never before!

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.

filter data sample

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:

vba code to select the cells to insert comment

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

type the comment in the textbox

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

 comments are inserted to all visible cells only


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
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

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


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!