Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How do I have a cell display the date its row was last updated?

Hiya,
does anyone know how to have a cell automatically display adate that is
refreshed to today whenever its row is updated? - would be massively useful...

many thanks!

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default How do I have a cell display the date its row was last updated?

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


--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"castell" wrote in message ...
| Hiya,
| does anyone know how to have a cell automatically display adate that is
| refreshed to today whenever its row is updated? - would be massively useful...
|
| many thanks!
|


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default How do I have a cell display the date its row was last updated?

How to insert code into worksheets:
http://www.jlathamsite.com/Teach/WorksheetCode.htm

Just change "A" to whatever column the date should be placed into on the
current sheet/row where a change was made.

If you need this on several sheets, each worksheet needs this code added to
it's _Change() event.

Private Sub Worksheet_Change(ByVal Target As Range)
Const DateCellColumn = "A" ' change
If Target.Cells.Count 1 Then
Exit Sub
End If

Application.EnableEvents = False
Range(DateCellColumn & Target.Row) = Now()
Application.EnableEvents = True

End SubHow to insert code into worksheets:
http://www.jlathamsite.com/Teach/WorksheetCode.htm

Just change "A" to whatever column the date should be placed into on the
current sheet/row where a change was made.

If you need this on several sheets, each worksheet needs this code added to
it's _Change() event.

Private Sub Worksheet_Change(ByVal Target As Range)
Const DateCellColumn = "A" ' change
If Target.Cells.Count 1 Then
Exit Sub
End If

Application.EnableEvents = False
Range(DateCellColumn & Target.Row) = Now()
Application.EnableEvents = True

End Sub

"castell" wrote:

Hiya,
does anyone know how to have a cell automatically display adate that is
refreshed to today whenever its row is updated? - would be massively useful...

many thanks!

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
Mileage Claim Formula johndavies New Users to Excel 4 August 14th 06 09:24 AM
formatting a cell to display the correct date. Lee Excel Discussion (Misc queries) 1 February 23rd 06 04:04 PM
display last cell in a column as the sheet is updated Marc Excel Worksheet Functions 1 February 17th 06 09:12 PM
HELP - Date Range In 1 Cell Calculation Adam Excel Worksheet Functions 6 September 19th 05 08:24 PM
Combine & Display “Fixed” & “Automatically Updated” Date Parts texcel Excel Worksheet Functions 1 November 1st 04 05:38 PM


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