Hello guys,
I have something like 300 rows. I want to get a time stamp at column A when column B is equal to "Non" (by default it is equal to "Oui"). To do that, I have to change the value of column C which has a conditional formula. I can change the value at any row, and I want the time stamp in the row which I have selected. I've been struggling to do that with no success. Please help me with the code, I don't know how to do that. This is what I have right now:
Private Sub Worksheet_Change(ByVal Target As Range)
If Cells(Target.Row, "B") = Non Then
Cells(Target.Row, "A") = Date
End If
End Sub
By the way, when I paste some VBA code in excel table file, if I press ctrl+z (undo) it does not undo...why does it happen?
Thank you very much in advance!
I have something like 300 rows. I want to get a time stamp at column A when column B is equal to "Non" (by default it is equal to "Oui"). To do that, I have to change the value of column C which has a conditional formula. I can change the value at any row, and I want the time stamp in the row which I have selected. I've been struggling to do that with no success. Please help me with the code, I don't know how to do that. This is what I have right now:
Private Sub Worksheet_Change(ByVal Target As Range)
If Cells(Target.Row, "B") = Non Then
Cells(Target.Row, "A") = Date
End If
End Sub
By the way, when I paste some VBA code in excel table file, if I press ctrl+z (undo) it does not undo...why does it happen?
Thank you very much in advance!