PC Review


Reply
Thread Tools Rate Thread

auto set time(now) if criteria=true with no later change

 
 
=?Utf-8?B?UmFmaSBCZW5hbWk=?=
Guest
Posts: n/a
 
      23rd Apr 2007
I am using excel to manage a continues progress report on a data base of
users. The report includes set of stages that the users are going through.
Each time a define criteria set on (true), the user is moving from one stage
to the next.

I have a cell in which I mark the entry day (the day the user enter the new
stage). Once the date was set, it should be constant and should not change in
the future, even if the criteria was change.

I am looking for a automated way to set the date (today) but once set, stay
as a constant.

Using “ =IF(G7+H7+I7 >= 1,TODAY(),"") ” will set the date but once I change
the values in G7/H7/I7 the date is being re-set.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?=
Guest
Posts: n/a
 
      25th Apr 2007
I'd probably use something like a Worksheet_Change event for this. These are
executed when something is changed on a worksheet. You can selectively run
the code based on which cells change, etc.

See example below:

Private Sub Worksheet_Change(ByVal Target As Range)
Dim myrange As Range
Dim r As Range
Dim EmptyRange As Boolean
Set myrange = Range("G7:I7")

if not intersect(target,myrange) is nothing then
EmptyRange = False
For Each r In myrange
If IsEmpty(r) Then
EmptyRange = True
Exit For
End If
Next r

If EmptyRange Then
Cells("J7").Value = WorksheetFunction.Text(Now, "mm-dd-yyyy")
Else
'Whatever you'd do if you already have something in all cells.
End If
End if
End Sub


"Rafi Benami" wrote:

> I am using excel to manage a continues progress report on a data base of
> users. The report includes set of stages that the users are going through.
> Each time a define criteria set on (true), the user is moving from one stage
> to the next.
>
> I have a cell in which I mark the entry day (the day the user enter the new
> stage). Once the date was set, it should be constant and should not change in
> the future, even if the criteria was change.
>
> I am looking for a automated way to set the date (today) but once set, stay
> as a constant.
>
> Using “ =IF(G7+H7+I7 >= 1,TODAY(),"") ” will set the date but once I change
> the values in G7/H7/I7 the date is being re-set.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stored Query - Criteria if box = true, => true, if box = false => BlueWolverine Microsoft Access Forms 1 4th Aug 2008 09:13 PM
How to auto text colour change to green if logical function true? Al Microsoft Excel Misc 1 26th Dec 2007 12:05 AM
auto set time(now) if criteria=true with no later change =?Utf-8?B?UmFmaSBCZW5hbWk=?= Microsoft Excel Worksheet Functions 1 24th Apr 2007 05:57 AM
How to change the auto logoff time? =?Utf-8?B?U2hlcndpbg==?= Microsoft Outlook Discussion 1 9th Mar 2006 12:36 PM
Change time interval before auto log off David F-B Windows XP Performance 0 7th Jul 2004 02:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:20 PM.