See this:Hello! I have a question on how to make this work. I need Cell E1 to update automatically with the current date and time stamp when a cell in range A5:O21 changes. How can I make that happen? Thanks for your help!
Sorry, I'm not sure how to deal with that.So I tried that, got it in there. When I paste data into the cell range, it doesn't time stamp. If I physically enter data, it does. I need this to work when data may be pasted in as well. Any ideas?
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("A521")) Is Nothing Then
Range("E1").Value = Now()
Application.EnableEvents = True
End If
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
Application.EnableEvents = False
Select Case Target.Column
Case 1, 3, 5
If Target.Value = "" Then
Target.Offset(, 1).ClearContents
Else
Target.Offset(, 1).Value = Now
End If
End Select
Application.EnableEvents = True
End Sub