Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert cell comment to a cell 1

Status
Not open for further replies.

Irishiii75

Technical User
Jul 27, 2001
9
US
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?
 
If you don't have too many to do, you can always use:

1) Right-Click,

2) Choose Edit Comment.

3) Highlight the text.

4) <Control> C

5) Click onto the cell,

6) <Control> V

Hope this helps.

Regards, ...Dale Watson dwatson@bsi.gov.mb.ca
 
Code:
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

This macro will work as long as each cell has a comment - let me know if this is not the case. Choose appropriate values for x1 & x2 according to your range. If the range will change from execution to execution of teh macro, let me know, there's a way round this.

Cheers. SuperBry!
 
Hi,

If you have ALOT of comments, then consider a VBA solution...
Code:
Sub PutCommentInNextColumn()
    Dim vText, iCol
    iCol = InputBox(&quot;What column are your comments in?&quot; & vbCrLf & &quot;The text will be put in the adjacent column&quot;)
    Select Case UCase(iCol)
        Case &quot;A&quot; To &quot;Z&quot;
            iCol = Asc(UCase(iCol)) - 64
        Case 1 To 255
        
        Case Else
            MsgBox (&quot;tilt&quot;)
            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

Just another alternative :) Skip,
metzgsk@voughtaircraft.com
 
Thank you to all of you for your prompt help.
I did have a lot of them and they weren't in every cell.
SkipVought's procedure worked in my case.

I appreciate all the help.
 
Pssssssssst, you forget to give Skip a STAR.

By your selection of Skip's procedure, Skip &quot;won fair & square&quot;, so we all don't mind one bit that you'll be singling him out for a STAR.

Regards, ...Dale Watson dwatson@bsi.gov.mb.ca
 
Thanks for asking. Because your profile shows that you have issued 1 STAR, I thought you would have known.

It's just a matter of clicking on the &quot;Click here to mark this post as a helpful or expert post!&quot; - located in the lower-left-corner of the contributor's posting.

PLEASE, do NOT issue a STAR for this &quot;reminder&quot; - I want to earn STARS the normal way.

Regards, ...Dale Watson dwatson@bsi.gov.mb.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top