Irishiii75
Technical User
I have comments attached to some cells in column B of a spreadsheet. Is there a way to move the comments to a cell of there own in column C, where they would be data and not comments?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
for each cll in range(cells(x1,2),cells(x2,2)).cells
cll.offset(0,1).value = cll.comment.text
cll.comment.delete
next cll
Sub PutCommentInNextColumn()
Dim vText, iCol
iCol = InputBox("What column are your comments in?" & vbCrLf & "The text will be put in the adjacent column")
Select Case UCase(iCol)
Case "A" To "Z"
iCol = Asc(UCase(iCol)) - 64
Case 1 To 255
Case Else
MsgBox ("tilt")
Exit Sub
End Select
For Each Comment In ActiveSheet.Comments
vText = Comment.Text
If Not IsEmpty(vText) Then
With Comment.Parent
If iCol = .Column Then _
Cells(.Row, .Column + 1).Value = vText
End With
End If
Next
End Sub