Hi All,
I've searched on other posts and cannot come up the answer. I have the following code where I need the time (Now) to display when there is a value in Column O. However if something is pasted into O it does not trigger the Worksheet_Change. Please help!
Private Sub Worksheet_Change(ByVal Target As Range)
Dim S As Range, O As Range, t As Range
Set S = Range("S:S")
Set O = Range("O:O")
Set t = Target
If Intersect(t, O) Is Nothing Then Exit Sub
Application.EnableEvents = False
Range("S" & t.Row).Value = Now
Application.EnableEvents = True
End Sub
I've searched on other posts and cannot come up the answer. I have the following code where I need the time (Now) to display when there is a value in Column O. However if something is pasted into O it does not trigger the Worksheet_Change. Please help!
Private Sub Worksheet_Change(ByVal Target As Range)
Dim S As Range, O As Range, t As Range
Set S = Range("S:S")
Set O = Range("O:O")
Set t = Target
If Intersect(t, O) Is Nothing Then Exit Sub
Application.EnableEvents = False
Range("S" & t.Row).Value = Now
Application.EnableEvents = True
End Sub