Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Nilla_Brown
 
Posts: n/a
Default How do I set an automatic date stamp into a cell in Excel?

I am trying to set up my spread sheet so that when I enter a value in A1 (for
example) the time will pop up in A7. I have tried to do "if" statements, but
when I do "IF A1=0, THEN ***, NOT CTL,SHIFT;" BUT when I type "ctl,shft ;" it
automatically enters the time I entered the formula. I work in a phone
queue, and would like to automatically keep up with the times my calls come
in without having to remember to do so.
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

You need VBA, else the time just keeps updating

Private Sub Worksheet_Change(ByVal Target As Range)

On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range("A1:M1")) Is Nothing Then
With Target
.Offset(6, 0).Value = Format(Time, "hh:mm:ss")
End With
End If

ws_exit:
Application.EnableEvents = True
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.


--
HTH

Bob Phillips

"Nilla_Brown" wrote in message
...
I am trying to set up my spread sheet so that when I enter a value in A1

(for
example) the time will pop up in A7. I have tried to do "if" statements,

but
when I do "IF A1=0, THEN ***, NOT CTL,SHIFT;" BUT when I type "ctl,shft ;"

it
automatically enters the time I entered the formula. I work in a phone
queue, and would like to automatically keep up with the times my calls

come
in without having to remember to do so.



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
Can excel have a button to input (stamp) the systems date and/or . abe Excel Worksheet Functions 5 April 24th 07 10:00 PM
Exporting from MYOB to Excel the date cell doesn't display as dat. VickiO Excel Worksheet Functions 2 March 8th 05 12:43 AM
Turn cell red if today is greater or equal to date in cell Rich New Users to Excel 2 December 7th 04 10:50 PM
Combined date time cell to separate date & time components Mark Ada Excel Worksheet Functions 1 December 2nd 04 12:04 AM
Extract date from cell Eric Excel Worksheet Functions 3 November 4th 04 06:37 PM


All times are GMT +1. The time now is 02:58 AM.

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

About Us

"It's about Microsoft Excel"