Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
AntonyY
 
Posts: n/a
Default Time Stamp-With Change


I seen many posts on in this forum on time stamps. My problem this that
in a1:a10 are going to be the entries. I need upon each entry into each
cell a time stamp in b1:b10, but I need this to be hard coded so that if
I went back in a1and made a change it wouldn't change the time again in
b1.

Regards

Antony


--
AntonyY
------------------------------------------------------------------------
AntonyY's Profile: http://www.excelforum.com/member.php...o&userid=16690
View this thread: http://www.excelforum.com/showthread...hreadid=320465

  #2   Report Post  
Gord Dibben
 
Posts: n/a
Default

Antony

Try this in a worksheet module.

Right-click on your sheet tab and "View Code".

Paste in there.

Private Sub Worksheet_Change(ByVal Target As Range)
'Col B time will not change if data in Col A is edited
On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range("A1:A10")) Is Nothing Then
With Target
If .Value < "" And .Offset(0, 1).Value = "" Then
.Offset(0, 1).Value = Format(Now, "hh:mm:ss")
End If
End With
End If
ws_exit:
Application.EnableEvents = True
End Sub

Gord Dibben Excel MVP


On Thu, 25 Nov 2004 14:39:48 -0600, AntonyY
wrote:


I seen many posts on in this forum on time stamps. My problem this that
in a1:a10 are going to be the entries. I need upon each entry into each
cell a time stamp in b1:b10, but I need this to be hard coded so that if
I went back in a1and made a change it wouldn't change the time again in
b1.

Regards

Antony


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
How to change the color of all series in an excel chart in one go. Marielle Charts and Charting in Excel 2 May 3rd 23 07:45 PM
How to change the color of all series in an excel chart in one go. Mz2 Charts and Charting in Excel 1 January 20th 05 02:07 AM
Change the default chart colours TonyJD Charts and Charting in Excel 2 January 20th 05 02:06 AM
xy scatter graph with a scrolling time element Brad Charts and Charting in Excel 2 January 7th 05 02:53 PM
What is the formula for getting time difference e.g. ("4 hrs 15 m. Sandeep Manjrekar Charts and Charting in Excel 3 December 4th 04 06:18 AM


All times are GMT +1. The time now is 01:07 PM.

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"