S
saman110 via OfficeKB.com
hello,
I want to get the code below to stop inserting comment when I hit cancel. Any
help?
Thx.
Sub vbutton()
Dim strComments As String
strComments = InputBox("Please Type your comment")
ActiveCell.AddComment
ActiveCell.Comment.Visible = False
ActiveCell.Comment.Text Environ$("USERNAME") & Chr(10) & strComments
If Cancel = True Then
ActiveCell.ClearComments
End If
End Sub
I want to get the code below to stop inserting comment when I hit cancel. Any
help?
Thx.
Sub vbutton()
Dim strComments As String
strComments = InputBox("Please Type your comment")
ActiveCell.AddComment
ActiveCell.Comment.Visible = False
ActiveCell.Comment.Text Environ$("USERNAME") & Chr(10) & strComments
If Cancel = True Then
ActiveCell.ClearComments
End If
End Sub