Add this code to the worksheet that you want to use it with.then double click any cell to add ooooooooooa comment or add to an existing comment.
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Excel.Range, Cancel As Boolean)
On Error Resume Next
Dim sCmt As String
Dim sInput As String
If Target.Comment Is Nothing Then
sCmt = InputBox("Enter comment:", "Memo")
If sCmt = "" Then Exit Sub
Target.AddComment Text:=sCmt
Target.Comment.Visible = True
Target.Comment.Shape.TextFrame.AutoSize = True
ElseIf Target.Comment.Text <> "" Then
sInput = InputBox("Enter info:", "Comment Info")
If sInput = "" Then Exit Sub
sCmt = Target.Comment.Text & Chr(10) & sInput
Else
sCmt = InputBox("Enter info:", "Comment Info")
End If
With Target
.ClearComments
.AddComment Text:=sCmt
.Comment.Visible = True
.Comment.Shape.TextFrame.AutoSize = True 'Remove if you want to size it yourself
End With
Cancel = True 'Remove this if you want to enter text in the cell after you add the comment
End Sub
Bookmarks