Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 312
Default Date last changed by Row

Hi. I have a data sheet that I would like to add, in ColumnA, the date that
any contents in that given row have been changed. Every row is a unique set
of data. So any changes made to any data in row 5 will have a the date
inserted in A5. Possible? Thank you!


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Date last changed by Row

The techniques here can be adapted:

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


In article ,
"Steph" wrote:

Hi. I have a data sheet that I would like to add, in ColumnA, the date that
any contents in that given row have been changed. Every row is a unique set
of data. So any changes made to any data in row 5 will have a the date
inserted in A5. Possible? Thank you!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Date last changed by Row

Private Sub Worksheet_Change(ByVal Target As Range)

On Error GoTo ws_exit:
Application.EnableEvents = False
Me.Cells(Target.Row, "A").Value = Format(Date, "dd mmm yyyy")

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

RP
(remove nothere from the email address if mailing direct)


"Steph" wrote in message
...
Hi. I have a data sheet that I would like to add, in ColumnA, the date

that
any contents in that given row have been changed. Every row is a unique

set
of data. So any changes made to any data in row 5 will have a the date
inserted in A5. Possible? Thank you!




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default Date last changed by Row

Hi,
Think this will work for you.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
ThisRow = ActiveCell.Row
Range("A" & ThisRow).Formula = "=Today()"
End Sub

Thanks,

"Steph" wrote:

Hi. I have a data sheet that I would like to add, in ColumnA, the date that
any contents in that given row have been changed. Every row is a unique set
of data. So any changes made to any data in row 5 will have a the date
inserted in A5. Possible? Thank you!



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 a cell be changed on a certain date Lou825 Excel Discussion (Misc queries) 2 January 31st 09 11:46 AM
Date suddenly changed Bjoern[_2_] New Users to Excel 4 June 12th 08 02:53 AM
if a1 value changed then date in b1 DKY Excel Worksheet Functions 5 July 13th 05 09:31 PM
How do I get a date changed automatically AmyR Excel Worksheet Functions 1 March 24th 05 01:19 PM
Code - if T changed, change date in W to date it is changed Sandy[_3_] Excel Programming 2 July 27th 03 05:33 PM


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