julianhall
New Member
- Joined
- Nov 6, 2006
- Messages
- 24
Hi. I have checked this thread for my answer, but it doesn't seem to quite have what i want.
I want a spreadsheet for tracking issues with the following columns:
A - Date
B - Time
C - Detector of issue
D - Details
E - Status
What i would ideally want would be for when a user enters information about an issue into a cell in column D, the date and time would be entered into columns A&B respectively and, if possible, the username (as displayed in Tools > Options) to be entered in column C.
However, i would like the initial date & time, once entered, to never change. For instance, if i were to Type "XYZ noot working" at 12:00 on 01/01/2009, then correct my typo to "XYZ not working" at 13:03 on 02/01/2009, i would like the date & time stamps still to display 12:00 on 01/01/2009.
I've got some code (below) to do the date and time but it updates with every correction i make. Plus i can't get the username to work either.
Am i asking too much? Am i missing something obvious?
Thanks in advance guys.
I want a spreadsheet for tracking issues with the following columns:
A - Date
B - Time
C - Detector of issue
D - Details
E - Status
What i would ideally want would be for when a user enters information about an issue into a cell in column D, the date and time would be entered into columns A&B respectively and, if possible, the username (as displayed in Tools > Options) to be entered in column C.
However, i would like the initial date & time, once entered, to never change. For instance, if i were to Type "XYZ noot working" at 12:00 on 01/01/2009, then correct my typo to "XYZ not working" at 13:03 on 02/01/2009, i would like the date & time stamps still to display 12:00 on 01/01/2009.
I've got some code (below) to do the date and time but it updates with every correction i make. Plus i can't get the username to work either.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 4 Then
Application.EnableEvents = False
Target.Offset(0, -3).Value = Date
Target.Offset(0, -2).Value = Time
Target.Offset(0, -1).Value = UserName
Application.EnableEvents = True
End If
End Sub
Am i asking too much? Am i missing something obvious?
Thanks in advance guys.