Excel Extract Cell Comments

Excel VBA/Macro example below will extract comment from every cells with comment, and put the summary in the cell selected by user using Excel input box (read more about how to get cell reference using input box here).

Sub CreateCommentsSummary()

    Dim rgComments As Range, rgCell As Range, rgOutput As Range, iRow As Integer, iCol As Integer

    ' get all cells with comment
    Set rgComments = ActiveSheet.Cells.SpecialCells(xlCellTypeComments)

    ' get cell reference where user want to place the summary
    Set rgOutput = _
        Application.InputBox(Prompt:="Select cell where you want to put the comments summary", _
            Title:="Comments Summary", Type:=8)

    iRow = rgOutput.Row
    iCol = rgOutput.Column

    ' read each cell with comment and build the summary
    For Each rgCell In rgComments
        Cells(iRow, iCol) = rgCell.Address    ' print cell address
        Cells(iRow, iCol + 1) = rgCell.Value    ' print cell value
        Cells(iRow, iCol + 2) = rgCell.Comment.Text    'print cell comment text
        iRow = iRow + 1
    Next rgCell

End Sub

Happy coding :D

This entry was posted in Cells and Range and tagged , , , , , . Bookmark the permalink.

545 Responses to Excel Extract Cell Comments

  1. Pingback: easy loans

  2. Pingback: drawing tutorials method

  3. Pingback: Resources

  4. Pingback: san diego warrants

  5. Pingback: restaurant franchise opportunities

  6. Pingback: Hp Deskjet 6940

  7. Pingback: cheap new construction north texas

  8. Pingback: ice cream makers reviews

  9. Pingback: electric lawnmowers reviews

  10. Pingback: debt relief click now

  11. Pingback: new homes fulshear

  12. Pingback: how to tie a tie step by step

  13. Pingback: auto accident injury lawyers

  14. Pingback: Creation Site Internet Annecy

  15. Pingback: Wine Cellar

  16. Pingback: Juegos futbol gratis

  17. Pingback: scrapeboxlist

  18. Pingback: Digital Cameras

  19. Pingback: Digital Cameras

  20. Pingback: polos

  21. Pingback: sub zero parts 550

  22. Pingback: beats pro

  23. Pingback: powered by

  24. Pingback: Immobilier Concarneau

  25. Pingback: how to make money

  26. Pingback: ulta printable coupons

  27. Pingback: melody ionizer

  28. Pingback: graphic design

  29. Pingback: household safes

  30. Pingback: my insurance rates for cars

  31. Pingback: advertiser

  32. Pingback: iphone optimize application performance

  33. Pingback: website

  34. Pingback: http://mujeresb.com/

  35. Pingback: fifa 12 cheats

  36. Pingback: http://www.casquebluetooth.org/

  37. Pingback: bad credit payday loan

  38. Pingback: Zithromax Drug Risks

  39. Pingback: native instruments maschine

  40. Pingback: norcross tree service

  41. Pingback: promoting and celebrating Virginia creativity

  42. Pingback: fast loans online

  43. Pingback: apex merchant group careers

  44. Pingback: cheap loans

  45. Pingback: variable life insurance review

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>