Oops... I would want to use this on an entire row (some 1000 entries) So some automation would be nice
Thanks in advance
-Tom
Tom
To put the date in Row2 when an entry is input in Row1 :-
Private Sub Worksheet_Change(ByVal Target As Range)
Dim keyRange As Range
Set keyRange = Range("A1:IV1")
If Not Intersect(keyRange, Target) Is Nothing Then
Target.Offset(1, 0) = Date
End If
End Sub
You mention 1,000 entries in your row. Since a row only has 256 cells, you may have meant that you want the date to be entered in Column B when an entry is made in Column A :-
Private Sub Worksheet_Change(ByVal Target As Range)
Dim keyRange As Range
Set keyRange = Range("A:A")
If Not Intersect(keyRange, Target) Is Nothing Then
Target.Offset(0, 1) = Date
End If
End Sub
Celia
Celia,
Yes I did mean columns (I gotta stop posting without a full cup of coffee in me)
Worked like a charm.
Thanks, that really helped.
-Tom