Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Inserting time stamp onchange of any cell

I'm trying to insert a timestamp at the end of each row
of a spreadsheet whenever a cell in that row is changed
or edited. Is this a simple fix or a complicated macro?
Thanks in advance.

Mitch Carey

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 620
Default Inserting time stamp onchange of any cell

Mitch,

This worksheet event code checks for a change in rows 1-10, and puts the
date in column D

Private Sub Worksheet_Change(ByVal Target As Range)

Application.EnableEvents = False
On Error GoTo ws_exit
If Not Intersect(Target, Range("1:10")) Then
Cells(Target.Row, 4).Value = Format(Date, "dd mmm yyyy")
End If

ws_exit:
Application.EnableEvents = True
End Sub


To enter it, right click the sheet tab, select 'View Code' from the menu,
and paste the code into the code pane shown.

Change the rows (1:10) to suit, and the date column Target.Row,4.

--

HTH

Bob Phillips

"Mitchell Carey" wrote in message
...
I'm trying to insert a timestamp at the end of each row
of a spreadsheet whenever a cell in that row is changed
or edited. Is this a simple fix or a complicated macro?
Thanks in advance.

Mitch Carey



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 do i set up a time stamp if another number entered in cell? freddie74 Excel Discussion (Misc queries) 2 January 27th 09 02:48 PM
is it possible to time stamp cell comments? Dave F Excel Discussion (Misc queries) 4 October 6th 06 05:51 PM
is it possible to time stamp cell comments? Kevin B Excel Discussion (Misc queries) 0 October 6th 06 02:58 PM
Inserting time in cell to the right mrICYFIRE Excel Worksheet Functions 1 August 4th 05 07:19 AM
Setting up a date and time stamp in a cell Dave Peterson[_3_] Excel Programming 4 July 10th 03 01:53 PM


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