Public Sub Comment_Add()
Dim oCell As Range
Dim oVisible As Range
Dim sCommentText As String
Set oVisible = ActiveSheet.Range("D2:D" & ActiveSheet.Range("D" & Rows.Count).End(xlUp).Row).SpecialCells(xlCellTypeVisible)
For Each oCell In oVisible
sCommentText = oCell.Text & " : " & Format(Date, "mm/dd/yy")
oCell.Offset(0, 1).AddComment sCommentText
Next oCell
End Sub
Public Sub Comment_Delete()
Dim oComment As Comment
For Each oComment In ActiveSheet.Comments
If oComment.Parent.Column = 5 Then oComment.Delete
Next oComment
End Sub