+ Reply to Thread
Results 1 to 4 of 4

See comment locations in worksheet

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-29-2005
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    253

    Question See comment locations in worksheet

    Hi,

    Is there any ways to see all the location of my comments are located in a work sheet? Some of my comments has shifted to extreme rows and cause the worksheet to have many blank rows below.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Is there a way to see where all the comments in all cells are in a worksheet?

    Not entirely sure I follow ... pending the number of comment ranges you might get away with something like:

    Sub Example()
        Dim rngComment As Range, ws As Worksheet
        Sheets.Add.Name = "Cm_@_" & Format(Now, "YYYYMMDDhhmmss")
        For Each ws In ThisWorkbook.Worksheets
            If ws.Name <> ActiveSheet.Name Then
                With Cells(Rows.Count, "A").End(xlUp).Offset(1)
                    On Error Resume Next
                    Set rngComment = ws.Cells.SpecialCells(xlCellTypeComments)
                    On Error GoTo 0
                    If Not rngComment Is Nothing Then
                        .Offset(, 1).Value = rngComment.Address
                        .Value = ws.Name
                    End If
                End With
            End If
        Next ws
        Application.DisplayAlerts = False
        If Cells(2, "A").Value = "" Then ActiveSheet.Delete
        Application.DisplayAlerts = True
    End Sub

  3. #3
    Forum Contributor
    Join Date
    07-29-2005
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    253

    Re: Is there a way to see where all the comments in all cells are in a worksheet?

    er...how do I use the above information?

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Is there a way to see where all the comments in all cells are in a worksheet?

    You can hit F5, then click Special, tick Comments and hit OK.

    Now all cells with comments are highlighted. You can cycle through them by hitting the Enter key. Right-click on a cell and deal with showing / hiding / deleting the comment, or drag a visible comment to a preferred location.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1