I am working on a template that is intended to "Time Stamp date and time - for example 11 Feb 2013 22:58:47" in column C when the returnee name (someone given the equipment to use) is selected from a drop-down list in column A. (Note: the code I have, thanks to McGimpsey & Associates, captures stamping the date and time section for column C)
I also want the vba code to Time Stamp (23:20:25) column D when a name is selected in the drop-down list in column F as well as stamp the date in E as Monday, 11 Feb 2013.
I need assistance in modifying the code to stamp time and date separately in column D and E respectively. Below is the code:
Note: I have attached a sample copy of the template - with the vba code.
[VBA]Private Sub Worksheet_Change(ByVal Target As Excel.Range)
With Target
If .Count > 1 Then Exit Sub
If Not Intersect(Range("A4:A10000"), .Cells) Is Nothing Then
Application.EnableEvents = False
If IsEmpty(.Value) Then
.Offset(0, 2).ClearContents
Else
With .Offset(0, 2)
.NumberFormat = "dd mmm yyyy hh:mm:ss"
.Value = Now
End With
End If
Application.EnableEvents = True
End If
End With
End Sub[/VBA]