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 list all comments to a new worksheet or workbook in Excel?

If you have workbook with too many comments in it, and you want to list all comments to a new worksheet or workbook for reviewing all comments, how can ou do? The following methods can help you quickly list all comments of a worksheet / workbook to a new worksheet or workbook in Excel.

List all comments to a new worksheet with VBA code

List all comments to a new worksheet or workbook with Kutools for Excel


arrow blue right bubble List all comments to a new worksheet with VBA code


The following VBA code will list all comments to a new worksheet in current workbook. In the new worksheet, it will list all comments of the whole workbook in a list with the sheet name, cell address, comment contents and cell name. Please use this method as follows:

1. Click Developer > Visual Basic, it displays the Microsoft Visual Basic for applications window. And click Insert > Module, and then input the following VBA codes in the Module.

VBA: lists all comments in a new worksheet.

Sub ShowCommentsAllSheets()
'Update 20140508
Dim commrange As Range
Dim rng As Range
Dim ws As Worksheet
Dim newWs As Worksheet
Set newWs = Application.Worksheets.Add
newWs.Range("A1").Resize(1, 4).Value = Array("Sheet", "Address", "Value", "Comment")
Application.ScreenUpdating = False
On Error Resume Next
For Each ws In Application.ActiveWorkbook.Worksheets
    Set commrange = ws.Cells.SpecialCells(xlCellTypeComments)
    If Not commrange Is Nothing Then
        i = newWs.Cells(Rows.Count, 1).End(xlUp).Row
        For Each rng In commrange
            i = i + 1
            newWs.Cells(i, 1).Resize(1, 4).Value = Array(ws.Name, rng.Address, rng.Value, rng.Comment.Text)
        Next
    End If
    Set commrange = Nothing
Next
newWs.Cells.WrapText = False
Application.ScreenUpdating = True
End Sub

2. Then click doc-list-comments-1 button to run the code, and you will get a new worksheet with all the comments in the current workbook. See screenshot:

doc-list-comments-2


arrow blue right bubble List all comments to a new worksheet or workbook with one click

With the Create Comment List of Kutools for Excel, you can quickly list all comments to a new worksheet or a new workbook.

Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. Get it Now.

1. If you have installed Kutools for Excel, click Kutools > More > Create Comment List, see screenshot:

doc-list-comments-3-3

2. In the Create Comment List dialog box:

  • Select the scope that you want to list the comment, you can choose Active sheet or All sheets.
  • Then specify the location that you want to put the comments list, you can list the comments in a new workbook or a new sheet, see screenshot:

doc-list-comments-4-4

3. And then click Createbutton. A new worksheet will be added to list all the active worksheet comments with its attributes such as sheet name, cell references, row and column. See screenshot:

For more detailed information about Create Comment List, please visit Create Comment List feature description.


Related articles:


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.
  • To post as a guest, your comment is unpublished.
    Helena Karas · 3 months ago
    Ahoj lidi. Jmenuji se Helena Karas z Praha 8. V pondelí 07/01/19 dostal jsem úver ve výši 15.000.000 Kc od Peter Krajcovic za nemovitost v Praze 2. Správný e-mail pana Krajcovic je senatorrpwalter@hotmail.com. Jeho úver je 100% garantován. Kontaktujte jej, pokud stále hledáte pujcku.
  • To post as a guest, your comment is unpublished.
    Helena Karas · 3 months ago
    Ahoj lidi. Jmenuji se Helena Karas z Praha 8. V pondelí 07/01/19 dostal jsem úver ve výši 15.000.000 Kc od Peter Krajcovic za nemovitost v Praze 2. Správný e-mail pana Krajcovic je senatorrpwalter@hotmail.com. Jeho úver je 100% garantován. Kontaktujte jej, pokud stále hledáte pujcku.
  • To post as a guest, your comment is unpublished.
    Abdul · 3 months ago
    But what if you are just commencing? Anyone could have to investigate on particular topic,
    anyone start writing on out. This data was
    required to rank web web pages

    Almillat
    Maninerd
    hitscorner
    maniwebify
  • To post as a guest, your comment is unpublished.
    Alden · 11 months ago
    I found it useful to add the following line after line 8 in the VBA code; it renames the sheet to the comments and the date created.

    ActiveSheet.Name = "Comments " & Format(Now(), "DD-MMM-YY")
  • To post as a guest, your comment is unpublished.
    Loki · 1 years ago
    Oh, and one more thing. Each time I hit "Run", it opens a New Sheet with the list of comments. How can I make it add to the existing sheet without duplicating teh entries then? Thanks :)