Bulk Transferring Comments To Bottom Cells.

sdfhse

New Member
Joined
Aug 22, 2011
Messages
31
I am using comments as a sort of diary and the comments are always open and viewable. But after this, I want all the comments to be in the cells. But there are thousands of comments in the past years already. How can I transfer comments to cells? In example, There is a comment writing in A1 cell but I want it in the cell of A2 not as a comment but into the cell itself.... Same is true for B1, C1, D1, .......... All comments in these should be transferred to B2, C2, D2.... not as a comment but into the cells. Is there any way to do this in bulk, for thousands of them at one go?
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Try this. test on a copy of your worksheet.

Code:
Option Explicit

Sub CopyCommentToCellToRightText()

    Dim rngComments As Range
    Dim rngCell As Range
    
    Set rngComments = ActiveSheet.Cells.SpecialCells(xlCellTypeComments)

    'If you want to limit it to only comments in column A uncomment next line
    'Set rngComments = Intersect(rngComments, Columns(1))

    For Each rngCell In rngComments
        rngCell.Offset(0, 1).Value = rngCell.Comment.Text
    Next
    
    'If you want to delete comments uncomment next line
    'rngComments.ClearComments
    
End Sub
 
Upvote 0
This worked like a charm :) Thanks!

Instead of right, how can I make it one bottom cell?
 
Upvote 0
This will move comment to cell below. I misread your original post.
Code:
Option Explicit

Sub CopyCommentToCellToRightText()

    Dim rngComments As Range
    Dim rngCell As Range
    
    Set rngComments = ActiveSheet.Cells.SpecialCells(xlCellTypeComments)

    'If you want to limit it to only comments in column A uncomment next line
    'Set rngComments = Intersect(rngComments, Columns(1))

    For Each rngCell In rngComments
        rngCell.Offset(1, 0).Value = rngCell.Comment.Text
    Next
    
    'If you want to delete comments uncomment next line
    'rngComments.ClearComments
    
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,388
Members
448,957
Latest member
Hat4Life

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top