Ekteki örnekte aşağıdaki kodu kullanarak E;F sütunlarına ok değeri girildiğinde I sütununa veri giriş tarihinin yazılmasını sağlıyorum ancak yanlışlıkla ok lenen bir sütunda "OK" değeri silindiğinde yazdırılan tarihinde silinmesini istiyorum acaba nasıl yapabilirim?
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [E3:F65536]) Is Nothing Then Exit Sub
For X = 3 To [F65536].End(3).Row
If Cells(X, "I") = "0" Or Cells(X, "I") = "" Then If Cells(X, "F") = "OK" Then Cells(X, "I") = Now()
Next X
For Y = 3 To [E65536].End(3).Row
If Cells(Y, "I") = "0" Or Cells(Y, "I") = "" Then If Cells(Y, "E") = "OK" Then Cells(Y, "I") = Now()
Next Y
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [E3:F65536]) Is Nothing Then Exit Sub
For X = 3 To [F65536].End(3).Row
If Cells(X, "I") = "0" Or Cells(X, "I") = "" Then If Cells(X, "F") = "OK" Then Cells(X, "I") = Now()
Next X
For Y = 3 To [E65536].End(3).Row
If Cells(Y, "I") = "0" Or Cells(Y, "I") = "" Then If Cells(Y, "E") = "OK" Then Cells(Y, "I") = Now()
Next Y
End Sub
