seethanaboina
New Member
- Joined
- Feb 28, 2012
- Messages
- 5
Hi Hiker, I am new to using macros and I am trying to capture the date and time stamp of when data is entered into some cells. I was able to use an example found in one of the threads successfully. However, it worked on one row (say column A) and identified the date/time stamp as required in a different column (say I). How do I replicate this for another column (say B) to identify the date/time stamp in another column (J)? Please help me? The code I used is
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A:A")) Is Nothing Then Exit Sub
If Target = "" Then
Target.Offset(, 8) = ""
Exit Sub
End If
With Application
.EnableEvents = False
.ScreenUpdating = False
Target.Offset(, 8) = Format(Date, "mmm dd yyyy")
.EnableEvents = True
.ScreenUpdating = True
End With
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A:A")) Is Nothing Then Exit Sub
If Target = "" Then
Target.Offset(, 8) = ""
Exit Sub
End If
With Application
.EnableEvents = False
.ScreenUpdating = False
Target.Offset(, 8) = Format(Date, "mmm dd yyyy")
.EnableEvents = True
.ScreenUpdating = True
End With