copy data into comments?

D

Dana DeLouis

This is just another general idea...

Sub Demo()
' Data in B1 to Comment in A1

'If no data in B1, then exit
If [B1].Value = vbNullString Then Exit Sub

If [A1].Comment Is Nothing Then
' If no comment, then 'Add' a comment
[A1].AddComment [B1].Value
Else
'else change existing comment
[A1].Comment.Text [B1].Value
End If

'AutoSize comment if desired
[A1].Comment.Shape.TextFrame.AutoSize = True
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top