Sub to write cell contents into its own comment

M

Max

I would select a range of cells, then run the sub to write each cell's
content into its own comment. The sub to do nothing for any cell within the
selection which is blank. For cells which contain formulas, to write the
returned values into the comment. Thanks for insights
 
J

Jacob Skaria

Try the below

Sub Macro()
On Error Resume Next
For Each cell In Selection
If cell.Text <> "" Then _
cell.AddComment cell.Text
Next
End Sub


If this post helps click Yes
 

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