The code below successfully writes a cell’s formula into a comment for that cell.
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range)
Target.AddComment (Target.Formula)
End Sub
However, there is one slight snag to the code. When the macro has finished the comment text box is still active in edit mode. There must be a way to tell Excel I do not want the text box enabled once the macro has run, I just can’t identify how to do it.
Any help gratefully received,