جرب هذا الماكرو
فيه حلقة تكرارية تفحص التاريخ في العمود F ويدرج COMMANT قبل عشرة ايام
Sub test()
'On Error Resume Next
Dim lr
Dim x
Dim dt: dt = Date
Dim dt2: dt2 = Format(DateAdd("d", -10, dt), "dd-mm-yyyy")
With Sheets("نشاط")
lr = .Cells(Rows.Count, "f").End(xlUp).Row
.Range("f3:f" & lr).ClearComments
For x = 3 To lr
If Not IsDate(.Cells(x, "f")) = True Then GoTo 1
If CDate(Cells(x, "f")) = dt2 Then
.Cells(x, "f").AddComment
.Cells(x, "f").Comment.Visible = True
.Cells(x, "f").Comment.Text Text:=":" & Chr(10) & "عشرة ايام متبقية "
End If
1: Next x
End With
End Sub