Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default How Check some cells have been updated

Hi All
I want to keep trace some of cells in Row have been updated, the one
of column update as today and time ? Does formula can handle this ?

eg. A11 or B11 or C11 Updated, the D11 = today + time


moonhkt
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 489
Default How Check some cells have been updated

Put this code in your worksheet module. To do this, right click the sheet
tab at the bottom of Excel, click View Code, then paste code below into the
sheet module. This code will put a time stamp in Col. D if any data is
changed in columns A, B, or C. Give it a try. Hope this helps! If so, let
me know, click "YES" below.

Private Sub Worksheet_Change(ByVal Target As Range)

If Not Intersect(Target, Range("A:C")) Is Nothing Then
Cells(Target.Row, "D") = Format(Now, "mm/dd/yyyy - hh:mm:ss")
End If

End Sub

--
Cheers,
Ryan


"moonhk" wrote:

Hi All
I want to keep trace some of cells in Row have been updated, the one
of column update as today and time ? Does formula can handle this ?

eg. A11 or B11 or C11 Updated, the D11 = today + time


moonhkt
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default How Check some cells have been updated

On 2月9日, 下午11時36分, Ryan H wrote:
Put this code in your worksheet module. *To do this, right click the sheet
tab at the bottom of Excel, click View Code, then paste code below into the
sheet module. *This code will put a time stamp in Col. D if any data is
changed in columns A, B, or C. *Give it a try. *Hope this helps! *If so, let
me know, click "YES" below.

Private Sub Worksheet_Change(ByVal Target As Range)

* * If Not Intersect(Target, Range("A:C")) Is Nothing Then
* * * * Cells(Target.Row, "D") = Format(Now, "mm/dd/yyyy - hh:mm:ss")
* * End If

End Sub

--
Cheers,
Ryan



"moonhk" wrote:
Hi All
I want to keep trace some of cells in Row have been updated, the one
of column update as today and time ? Does formula can handle this ?


eg. A11 or B11 or C11 Updated, the D11 = today + time


moonhkt
.- 隱藏被引用文* -


- 顯示被引用文* -


Thank. It works. Does formula can handle this ?
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default How Check some cells have been updated

A worksheet formula can handle it but you must use circular references.

See John McGimpsey's site.

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


Gord Dibben MS Excel MVP

On Tue, 9 Feb 2010 16:57:55 -0800 (PST), moonhk wrote:

On 2?9?, ??11?36?, Ryan H wrote:
Put this code in your worksheet module. *To do this, right click the sheet
tab at the bottom of Excel, click View Code, then paste code below into the
sheet module. *This code will put a time stamp in Col. D if any data is
changed in columns A, B, or C. *Give it a try. *Hope this helps! *If so, let
me know, click "YES" below.

Private Sub Worksheet_Change(ByVal Target As Range)

* * If Not Intersect(Target, Range("A:C")) Is Nothing Then
* * * * Cells(Target.Row, "D") = Format(Now, "mm/dd/yyyy - hh:mm:ss")
* * End If

End Sub

--
Cheers,
Ryan



"moonhk" wrote:
Hi All
I want to keep trace some of cells in Row have been updated, the one
of column update as today and time ? Does formula can handle this ?


eg. A11 or B11 or C11 Updated, the D11 = today + time


moonhkt
.- ??????? -


- ??????? -


Thank. It works. Does formula can handle this ?


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default How Check some cells have been updated

On 2月11日, 上午1時14分, Gord Dibben <gorddibbATshawDOTca wrote:
A worksheet formula can handle it but you must use circular references.

See John McGimpsey's site.

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

Gord Dibben *MS Excel MVP



On Tue, 9 Feb 2010 16:57:55 -0800 (PST), moonhk wrote:
On 2?9?, ??11?36?, Ryan H wrote:
Put this code in your worksheet module. *To do this, right click the sheet
tab at the bottom of Excel, click View Code, then paste code below into the
sheet module. *This code will put a time stamp in Col. D if any data is
changed in columns A, B, or C. *Give it a try. *Hope this helps! *If so, let
me know, click "YES" below.


Private Sub Worksheet_Change(ByVal Target As Range)


* * If Not Intersect(Target, Range("A:C")) Is Nothing Then
* * * * Cells(Target.Row, "D") = Format(Now, "mm/dd/yyyy - hh:mm:ss")
* * End If


End Sub


--
Cheers,
Ryan


"moonhk" wrote:
Hi All
I want to keep trace some of cells in Row have been updated, the one
of column update as today and time ? Does formula can handle this ?


eg. A11 or B11 or C11 Updated, the D11 = today + time


moonhkt
.- ??????? -


- ??????? -


Thank. It works. Does formula can handle this ?- 隱藏被引用文* -


- 顯示被引用文* -


Thank for your information.

Also for event macro, how to check some column update or not

Not work
Private Sub Worksheet_Change(ByVal Target As Range)

If Not Intersect(Target, Range("A:B", "G:H")) Is Nothing Then

Cells(Target.Row, "AB") = Format(Now, "mm/dd/yyyy - hh:mm:ss")
End If

End Sub

Work, But need to input or
Private Sub Worksheet_Change(ByVal Target As Range)

If Not Intersect(Target, Range("A:C")) Is Nothing Or Not
Intersect(Target, Range("G:H")) Is Nothing Then

Cells(Target.Row, "M") = Format(Now, "mm/dd/yyyy - hh:mm:ss")
End If

End Sub


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
Excel cells randomly don't get updated unless each cell is updated Lost in Excel Excel Discussion (Misc queries) 5 September 29th 08 06:56 PM
Updated Cells in different workbooks James[_4_] Excel Discussion (Misc queries) 4 August 30th 07 05:49 PM
Need to track cells that haven't been updated telewats Excel Discussion (Misc queries) 2 January 24th 06 07:16 PM
Updated Cells David French Excel Programming 1 October 28th 05 05:37 PM
Updated cells David French Excel Worksheet Functions 0 October 27th 05 06:15 PM


All times are GMT +1. The time now is 02:56 AM.

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"