Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Time Stamping

Does anyone know how to "Time Stamp" a cell as data is
entered into an adjacent cell? I need it to be in
minutes and seconds, and to not change when the
spreadsheet is regenerated. The "NOW" function works
great, except that it updates.

Thanks for any help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Time Stamping

Marty

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
'when entering data in a cell in Col A
'Time Stamp placed in Col B
On Error GoTo enditall
If Target.Cells.Column = 1 Then
n = Target.Row
If Excel.Range("A" & n).Value < "" Then
Excel.Range("B" & n).Value = Now
End If
End If
enditall:
End Sub

Right-click on sheet tab and "View Code". Copy/paste the above code to
worksheet module.

Gord Dibben Excel MVP



On Tue, 24 Feb 2004 21:53:01 -0800, "Marty"
wrote:

Does anyone know how to "Time Stamp" a cell as data is
entered into an adjacent cell? I need it to be in
minutes and seconds, and to not change when the
spreadsheet is regenerated. The "NOW" function works
great, except that it updates.

Thanks for any help.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Time Stamping

Take a look at

http://www.mcgimpsey.com/excel/timestamp.html

In article ,
"Marty" wrote:

Does anyone know how to "Time Stamp" a cell as data is
entered into an adjacent cell? I need it to be in
minutes and seconds, and to not change when the
spreadsheet is regenerated. The "NOW" function works
great, except that it updates.

Thanks for any help.

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
Date and time stamping with a (macro) button ArcticWolf Excel Worksheet Functions 4 July 10th 08 12:26 PM
Time Stamping Cells Time Excel Discussion (Misc queries) 7 March 8th 07 09:11 PM
Time Stamping A Cell Time Excel Discussion (Misc queries) 3 March 8th 07 01:51 PM
Running averages and time stamping Scott W Excel Worksheet Functions 0 May 13th 06 01:47 PM
Time stamping - automated by worksheet update George[_16_] Excel Programming 5 December 8th 03 02:24 PM


All times are GMT +1. The time now is 08:39 AM.

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"