Move Comment into cell as Text

  • Thread starter Thread starter Frances
  • Start date Start date
F

Frances

How do I move comments into cells as text?
or use vlookup to pull comment to another sheet?
 
Select some cells and run this macro:

Sub CommentMover()
Dim r As Range
For Each r In Selection
On Error Resume Next
Set C = r.Comment
If Err.Number = 0 Then
r.Offset(0, 1).Value = r.Comment.Text
End If
On Error GoTo 0
Next
End Sub

If one of the selected cells contains a comment, the text will be copied
into the cell immediately to the right.
 
Worked Wonderfully.
--
Just Computing


Gary''s Student said:
Select some cells and run this macro:

Sub CommentMover()
Dim r As Range
For Each r In Selection
On Error Resume Next
Set C = r.Comment
If Err.Number = 0 Then
r.Offset(0, 1).Value = r.Comment.Text
End If
On Error GoTo 0
Next
End Sub

If one of the selected cells contains a comment, the text will be copied
into the cell immediately to the right.
 
Back
Top