Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim cell As Range
Set cell = Range("B1")
If cell.Formula.Value = "=>5" Then
cell.Offset(0, 0).AddComment "SUBSTRACT THEM"
Else
cell.Offset(0, 0).AddComment "ADD THEM"
End If
End Sub
my intention to add comment for targeting value
if the value is greater then 5 add "SUBSTRACT THEM" comment
Last edited: