This code deletes all the comments in the active worksheet.
VBA Code:
Sub DeleteAllComments()
Dim comment As Comment
For Each comment In ActiveSheet.Comments
comment.Delete
Next comment
End Sub
This code deletes all the comments in the active worksheet.
VBA Code:
Sub DeleteAllComments()
Dim comment As Comment
For Each comment In ActiveSheet.Comments
comment.Delete
Next comment
End Sub