Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MLK MLK is offline
external usenet poster
 
Posts: 81
Default Identifying updated cells

I have a resource file with about 20 columns and 400 rows (resources). As
resource changes occur, the file gets updated (not frequently, but maybe 1/2
dozen resource changes occur per week).

Is there a way to automatically enter a date into a new column that
identifies when any of the data changed for a resource row?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Identifying updated cells

Yes, with a little VBA:

Let's use column U (column #21) for the date-tag:

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Columns("A:T")) Is Nothing Then
Exit Sub
End If
n = Target.Row
Cells(n, "U").Value = Format(Now, "mm-dd-yyyy")
End Sub

To use this macro, right-click the tab name at the bottom and select
View Code
Then just paste the macro in.

--
Gary's Student


"MLK" wrote:

I have a resource file with about 20 columns and 400 rows (resources). As
resource changes occur, the file gets updated (not frequently, but maybe 1/2
dozen resource changes occur per week).

Is there a way to automatically enter a date into a new column that
identifies when any of the data changed for a resource row?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MLK MLK is offline
external usenet poster
 
Posts: 81
Default Identifying updated cells

Wonderful! Thank you very much.
MLK



"Gary''s Student" wrote:

Yes, with a little VBA:

Let's use column U (column #21) for the date-tag:

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Columns("A:T")) Is Nothing Then
Exit Sub
End If
n = Target.Row
Cells(n, "U").Value = Format(Now, "mm-dd-yyyy")
End Sub

To use this macro, right-click the tab name at the bottom and select
View Code
Then just paste the macro in.

--
Gary's Student


"MLK" wrote:

I have a resource file with about 20 columns and 400 rows (resources). As
resource changes occur, the file gets updated (not frequently, but maybe 1/2
dozen resource changes occur per week).

Is there a way to automatically enter a date into a new column that
identifies when any of the data changed for a resource row?

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
Copy/Paste how to avoid the copy of formula cells w/o calc values Dennis Excel Discussion (Misc queries) 10 March 2nd 06 10:47 PM
Updated cells David French Excel Worksheet Functions 0 October 27th 05 06:15 PM
Identifying Cells with formulas VETcalc Excel Worksheet Functions 2 August 13th 05 06:49 AM
Help adding text values Texas-DC_271 Excel Worksheet Functions 7 January 15th 05 11:14 PM
Convert data type of cells to Text,Number,Date and Time Kevin Excel Worksheet Functions 1 December 31st 04 12:57 PM


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