Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
working on a log sheet which has column A for date/time IN and a column G for
date/time out. I will like column A to get stamped upon filling out column D (locaction) and column G stamped when column E task is indicated. Is the possible, been working on this for 2 days and I need some help, please somebody. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this - right click on the sheet tab, select view code, and paste this
into the code window that appears. Private Sub Worksheet_Change(ByVal Target As Range) Application.EnableEvents = False If Target.Column = 4 Then Range("A" & Target.Row).Value = Now ElseIf Target.Column = 5 Then Range("G" & Target.Row).Value = Now End If Application.EnableEvents = True End Sub "ruben" wrote: working on a log sheet which has column A for date/time IN and a column G for date/time out. I will like column A to get stamped upon filling out column D (locaction) and column G stamped when column E task is indicated. Is the possible, been working on this for 2 days and I need some help, please somebody. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Added a line so that that it will not overwrite the date/time stamp if
something is deleted from column D or E. Private Sub Worksheet_Change(ByVal Target As Range) If Len(Target.Value) = 0 Then Exit Sub Application.EnableEvents = False If Target.Column = 4 Then Range("A" & Target.Row).Value = Now ElseIf Target.Column = 5 Then Range("G" & Target.Row).Value = Now End If Application.EnableEvents = True End Sub "JMB" wrote: Try this - right click on the sheet tab, select view code, and paste this into the code window that appears. Private Sub Worksheet_Change(ByVal Target As Range) Application.EnableEvents = False If Target.Column = 4 Then Range("A" & Target.Row).Value = Now ElseIf Target.Column = 5 Then Range("G" & Target.Row).Value = Now End If Application.EnableEvents = True End Sub "ruben" wrote: working on a log sheet which has column A for date/time IN and a column G for date/time out. I will like column A to get stamped upon filling out column D (locaction) and column G stamped when column E task is indicated. Is the possible, been working on this for 2 days and I need some help, please somebody. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
thank, I'll give a shot. I had DATE/TIME IN figured out, but the DATE/TIME
OUT was given a problem. Again thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Date Time Stamp Dilemna | Excel Discussion (Misc queries) | |||
Date-Time Stamp | Excel Discussion (Misc queries) | |||
Username & Date/Time Stamp | Excel Discussion (Misc queries) | |||
date/time stamp | Excel Worksheet Functions | |||
Date/Time stamp with one stroke? | Excel Discussion (Misc queries) |