Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Automate date & time entry

Hi, first question so be gentle if this has already asked. I've tried using
the search function on Office 2003and on this website (and also Google) but
can't find what I am after.

I have an Excel 2003 spreadsheet which is currently used as a simple
line-by-line text based log of company deliveries and is added to several
times each day. All the data is manually entered cell-by-cell.

The column A is date formatted and logs the date the delivery arrives.

Columns B and C record the date and time (respectively) of when the delivery
paperwork is passed to my dept. Currently, this is entered either manually or
using 'Ctrl-;' and 'Ctrl-Shift-;'.

Is there any way of automatically completing the cells in column B and C
when a date is entered in the same row in column A? e.g. if the cell in A1 is
filled with a date of dd/mm/yy (whatever that might be) is there a formula to
automatically complete B1 and C1 with the current (i.e. not identical) date
and time?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Automate date & time entry

Right click sheet tabview codeinsert this

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count < 1 Or _
IsDate(Target) = False Or _
Target.Column < 1 Then Exit Sub

Target.Offset(, 1) = Date
Target.Offset(, 2) = Time
End Sub

or for 8/18/2009 16:46

change the 2 lines to
target.offset(,1)=now
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Cheeris" wrote in message
...
Hi, first question so be gentle if this has already asked. I've tried
using
the search function on Office 2003and on this website (and also Google)
but
can't find what I am after.

I have an Excel 2003 spreadsheet which is currently used as a simple
line-by-line text based log of company deliveries and is added to several
times each day. All the data is manually entered cell-by-cell.

The column A is date formatted and logs the date the delivery arrives.

Columns B and C record the date and time (respectively) of when the
delivery
paperwork is passed to my dept. Currently, this is entered either manually
or
using 'Ctrl-;' and 'Ctrl-Shift-;'.

Is there any way of automatically completing the cells in column B and C
when a date is entered in the same row in column A? e.g. if the cell in A1
is
filled with a date of dd/mm/yy (whatever that might be) is there a formula
to
automatically complete B1 and C1 with the current (i.e. not identical)
date
and time?


Reply
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
Time and Date Entry Shortcuts? Tammy Excel Worksheet Functions 5 January 4th 08 05:27 AM
automate date entry - update pls. medavino Excel Worksheet Functions 5 December 27th 07 09:16 PM
automate date entry medavino Excel Worksheet Functions 9 December 26th 07 04:52 PM
Freezing Date/Time after data entry. Shadyhosta New Users to Excel 2 January 31st 07 06:24 AM
Data Entry date/time? FARAZ QURESHI Excel Discussion (Misc queries) 3 January 1st 07 09:55 PM


All times are GMT +1. The time now is 11:49 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"