J
J.W. Aldridge
Hi.
I have the formula in which if I update a cell in a row, column A will
time stamp the change.
Private Sub Worksheet_Change(ByVal Target As Range)
Range("A" & Target.Row) = Now()
End Sub
However, I would like to have a time stamp in column A, whenever the
same row (column B) is updated with a "Y". I am keeping a daily log and
want to be able to control the date and time stamped by placing a Y in
column B. I want to know what time a Y was placed on the row.
In short terms, Y = date/time stamp, no Y, no date/time stamp.
Example below:
A B C
11/16/2006 10:59 Y Sheila
poked me in the eye.
I poked her back!
11/16/2006 11:00 Y She poked
me again!
Any suggestions?
I have the formula in which if I update a cell in a row, column A will
time stamp the change.
Private Sub Worksheet_Change(ByVal Target As Range)
Range("A" & Target.Row) = Now()
End Sub
However, I would like to have a time stamp in column A, whenever the
same row (column B) is updated with a "Y". I am keeping a daily log and
want to be able to control the date and time stamped by placing a Y in
column B. I want to know what time a Y was placed on the row.
In short terms, Y = date/time stamp, no Y, no date/time stamp.
Example below:
A B C
11/16/2006 10:59 Y Sheila
poked me in the eye.
I poked her back!
11/16/2006 11:00 Y She poked
me again!
Any suggestions?