Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Auto date & time
When data is entered into A3, I'd like that days date to automatically appear
in A1 and the time of enrty to appear in A2. What is the easiest way tro achieve this -- tia Jock |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Auto date & time
On May 1, 5:59 am, Jock wrote:
When data is entered into A3, I'd like that days date to automatically appear in A1 and the time of enrty to appear in A2. What is the easiest way tro achieve this -- tia Jock |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Auto date & time
Hi, I have the same question. The twist I have is to keep the date as
a value vs. a formula so it will not update the next time I open the work sheet. Thx Turbo |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Auto date & time
Event code.
Private Sub Worksheet_Change(ByVal Target As Range) On Error GoTo ws_exit: Application.EnableEvents = False If Not Intersect(Target, Me.Range("A3")) Is Nothing Then With Target If .Value < "" Then .Offset(-1, 0).Value = Format(Now, "hh:mm:ss") .Offset(-2, 0).Value = Format(Date, "dd/mm/yyyy") End If End With End If ws_exit: Application.EnableEvents = True End Sub Right-click on the sheet tab and "View Code" Copy/paste into that sheet module. Gord Dibben MS Excel MVP On Tue, 1 May 2007 04:59:01 -0700, Jock wrote: When data is entered into A3, I'd like that days date to automatically appear in A1 and the time of enrty to appear in A2. What is the easiest way tro achieve this |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Auto date & time
Brilliant! Thanks very much
-- tia Jock "Gord Dibben" wrote: Event code. Private Sub Worksheet_Change(ByVal Target As Range) On Error GoTo ws_exit: Application.EnableEvents = False If Not Intersect(Target, Me.Range("A3")) Is Nothing Then With Target If .Value < "" Then .Offset(-1, 0).Value = Format(Now, "hh:mm:ss") .Offset(-2, 0).Value = Format(Date, "dd/mm/yyyy") End If End With End If ws_exit: Application.EnableEvents = True End Sub Right-click on the sheet tab and "View Code" Copy/paste into that sheet module. Gord Dibben MS Excel MVP On Tue, 1 May 2007 04:59:01 -0700, Jock wrote: When data is entered into A3, I'd like that days date to automatically appear in A1 and the time of enrty to appear in A2. What is the easiest way tro achieve this |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
Auto date & time
Gord,
How would you modify the below to put the date in column A if data is entered into column B? For the entire sheet. In other words, I type in B16 and the date auto populates into A16 in a 07/07/07 format? "Jock" wrote: Brilliant! Thanks very much -- tia Jock "Gord Dibben" wrote: Event code. Private Sub Worksheet_Change(ByVal Target As Range) On Error GoTo ws_exit: Application.EnableEvents = False If Not Intersect(Target, Me.Range("A3")) Is Nothing Then With Target If .Value < "" Then .Offset(-1, 0).Value = Format(Now, "hh:mm:ss") .Offset(-2, 0).Value = Format(Date, "dd/mm/yyyy") End If End With End If ws_exit: Application.EnableEvents = True End Sub Right-click on the sheet tab and "View Code" Copy/paste into that sheet module. Gord Dibben MS Excel MVP On Tue, 1 May 2007 04:59:01 -0700, Jock wrote: When data is entered into A3, I'd like that days date to automatically appear in A1 and the time of enrty to appear in A2. What is the easiest way tro achieve this |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Time entry auto changes to date and then time ? | Excel Worksheet Functions | |||
Auto Date & Time | Excel Worksheet Functions | |||
Auto insert date/time | Excel Worksheet Functions | |||
Please help with auto Date and Time with VBA | Excel Programming | |||
Auto insertion of date and time | Excel Programming |