Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Time stamp - data input to row

Hi,

I have an Excel spreadsheet with almost 2000 rows of data presently.
For future data input, need to capture two additional info in two more
columns.

one which capture the date on which data is input into a blank row anywhere

and second column the date on which any data is modified in any row but on
specified columns-say column B, C, D , E and F

lastly for the existing 2000 rows, the date created and date modified column
can take arbitrary date of 07/01/2006.

Help please.

George V


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 113
Default Time stamp - data input to row

Hi George, not exactly what you wanted, but this could get you going towards
your need. This example is for A1:100 and D1 to D100. Also do a search on
this site.

Private Sub Worksheet_Change(ByVal Target As Range)

On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range("A1:A100")) Is Nothing Then
With Target
.Offset(0, 6).Value = Format(Now, "dd mmm yy hh:mm:ss")
.Offset(0, 7).Value = Environ("UserName")
End With
End If
Application.EnableEvents = False
If Not Intersect(Target, Me.Range("D1:D100")) Is Nothing Then
With Target
.Offset(0, 3).Value = Format(Now, "dd mmm yy hh:mm:ss")
.Offset(0, 4).Value = Environ("UserName")
End With
End If



ws_exit:
Application.EnableEvents = True
End Sub

--
Robert


"george-v" wrote:

Hi,

I have an Excel spreadsheet with almost 2000 rows of data presently.
For future data input, need to capture two additional info in two more
columns.

one which capture the date on which data is input into a blank row anywhere

and second column the date on which any data is modified in any row but on
specified columns-say column B, C, D , E and F

lastly for the existing 2000 rows, the date created and date modified column
can take arbitrary date of 07/01/2006.

Help please.

George V


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
Trigger a Date & Time stamp by entering data in another field... mjjohnso Excel Worksheet Functions 4 April 11th 09 06:46 PM
Can excel have a button to input (stamp) the systems date and/or . abe Excel Worksheet Functions 5 April 24th 07 10:00 PM
Time Stamp FARAZ QURESHI Excel Discussion (Misc queries) 8 January 8th 07 11:51 PM
How to input 'Used time' data ? Patrick Chan Excel Worksheet Functions 2 November 7th 06 06:04 AM
time stamp a cell that doesn,t change when time stamping another RC Excel Programming 5 October 13th 05 02:52 AM


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