View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Gord Dibben Gord Dibben is offline
external usenet poster
 
Posts: 22,906
Default static date and time

Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range("H51")) Is Nothing Then
With Target
If .Value < "" Then
.Offset(0, 2).Value = Format(Now, ""dd/mm/yyyy hh:mm:ss")
End If
End With
End If
ws_exit:
Application.EnableEvents = True
End Sub


Gord Dibben MS Excel MVP

On Thu, 29 Jan 2009 08:05:01 -0800, Wanna Learn
wrote:

Hello
I have a worksheet and on cell H51 is a dropdown list with the names of the
employees.
Once the employee selects his/her name from the list I need the date and
time (static) to populate in cell J51. thank you so much in advance