Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How can I determine the modification date of a cell?

I'm creating a prioritized list using Excel 2003 that will be updated
periodically. I would like to know if there is a way to capture the last date
when a priority was changed. For example, if A1 contains a priority of level
1, then B1 would contain the date of when I entered that priority. Now, let's
say after a few weeks that priority is changed to level 2, I now want B2 to
show the new date of when the change to 2 was made. Any ideas on how to do
this?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default How can I determine the modification date of a cell?

Clarification please... Is A1 the only cell that is being monitored? If so,
are you listing the dates a changed was made in a running list down Column
B? I ask because your post said B1 for the first change and B2 for the
second change, but only ever mentioned A1 as the priority cell.

--
Rick (MVP - Excel)


"robrowe" wrote in message
...
I'm creating a prioritized list using Excel 2003 that will be updated
periodically. I would like to know if there is a way to capture the last
date
when a priority was changed. For example, if A1 contains a priority of
level
1, then B1 would contain the date of when I entered that priority. Now,
let's
say after a few weeks that priority is changed to level 2, I now want B2
to
show the new date of when the change to 2 was made. Any ideas on how to do
this?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default How can I determine the modification date of a cell?

Hi,

Here is some sample code:

Private Sub Worksheet_Change(ByVal Target As Range)
Dim isect As Range
Set isect = Application.Intersect(Target, Range("A1:A100"))
If Not isect Is Nothing Then
Target.Offset(0,1) = Date
End If
End Sub
--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"robrowe" wrote:

I'm creating a prioritized list using Excel 2003 that will be updated
periodically. I would like to know if there is a way to capture the last date
when a priority was changed. For example, if A1 contains a priority of level
1, then B1 would contain the date of when I entered that priority. Now, let's
say after a few weeks that priority is changed to level 2, I now want B2 to
show the new date of when the change to 2 was made. Any ideas on how to do
this?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default How can I determine the modification date of a cell?

Shane

I would click on the "maybe" button depending upon answers to Rick's query.

Your code will overwrite B1 when a new priority number is entered in A1

From OP's description, sounds like B1 date should remain as was and B2 to
get new date.


Gord


On Mon, 9 Feb 2009 08:41:02 -0800, Shane Devenshire
wrote:

Hi,

Here is some sample code:

Private Sub Worksheet_Change(ByVal Target As Range)
Dim isect As Range
Set isect = Application.Intersect(Target, Range("A1:A100"))
If Not isect Is Nothing Then
Target.Offset(0,1) = Date
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
Formula for last modification date? Krista Excel Discussion (Misc queries) 3 October 26th 07 12:26 AM
Modification Date ChrisAMEC Excel Discussion (Misc queries) 2 July 20th 07 06:36 PM
Determine next Saturday in calendar based on date in a cell ann New Users to Excel 4 October 9th 06 05:09 PM
Last Modification Date Hal Excel Worksheet Functions 2 May 22nd 06 08:44 PM
Using formulas to determine date in one cell based on date in anot Gary Excel Worksheet Functions 2 November 22nd 04 08:11 AM


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