LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.misc
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


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Static Date & Time in Footer - Excel 2007 Maria Maz Excel Discussion (Misc queries) 0 January 26th 09 03:17 PM
Static Date and Time code problem Laura Excel Discussion (Misc queries) 12 August 31st 07 07:04 AM
how can i set a static date and time in excel ucastores Excel Worksheet Functions 2 June 3rd 06 01:38 AM
how do I insert the current time (static) and date in a cell? DF Excel Discussion (Misc queries) 5 October 28th 05 05:54 PM
Excel static current date/time problem hpmted Excel Worksheet Functions 1 March 30th 05 09:12 PM


All times are GMT +1. The time now is 11:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"