How to Copy Only Comments from Cells in Excel

,

This post will guide you how to copy only comments from a cell in Excel 2013/2016. How do I copy cell comments to another cell with VBA Macro in Excel.

Copy Cell Comments with Paste Options


To copy cell comments from a selected range in your worksheet, you just need to do the following steps:

#1 select the cell that contain comments that you want to copy. Press Ctrl + C to copy those cells.

copy only cell comments1

#2 select one cell that you want to paste comments, and right click on the selected cell, and select Paste Special in the Paste Options section from the popup menu list. And the Paste Special window will appear.

copy only cell comments2

#3 choose only Comments radio button in the Paste section, click Ok button to apply those changes.

copy only cell comments3

#4 you can see that only comments getting copied.

copy only cell comments4

Copy Cell Comments with VBA


You can also use an Excel VBA macro to achieve the same result of copying only Cell comments from the selected range to another cell. Here are the steps:

#1 open your excel workbook and then click on “Visual Basic” command under DEVELOPER Tab, or just press “ALT+F11” shortcut.

Get the position of the nth using excel vba1

#2 then the “Visual Basic Editor” window will appear.

#3 click “Insert” ->”Module” to create a new module.

convert column number to letter3

#4 paste the below VBA code  into the code window. Then clicking “Save” button.

copy only cell comments5

Sub OnlyCopyComments()
    Set CopyCells = Application.Selection
    Set CopyCells = Application.InputBox("Select a range that to be copied:", , CopyCells.Address, Type:=8)
    Set PasteCell = Application.InputBox("Select a cell that you want to Paste:", , Type:=8)
        CopyCells.Copy
        PasteCell.Parent.Activate
        PasteCell.PasteSpecial xlPasteComments
        Application.CutCopyMode = False
End Sub

#5 back to the current worksheet, then run the above excel macro. Click Run button.

copy only cell comments6

#6 Select a range that to be copied, such as: B1:B3.

copy only cell comments7

#7  Select a cell that you want to Paste, such as: G1.

copy only cell comments8

#8 Let’s see the last result:

copy only cell comments4

 

Leave a Reply