Re: Easy one...
- From: "Rick Rothstein" <rick.newsNO.SPAM@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 22 Jun 2009 12:26:02 -0400
Right click the tab at the bottom of the work*** that you want to have this functionality, select View Code from the popup menu that appears and copy/paste the code into the code window that opened up.
--
Rick (MVP - Excel)
"John" <John@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:926F3934-1444-434B-92BE-3629A2AC0FE2@xxxxxxxxxxxxxxxx
I can't get it to run no matter what values are in my cells... code looks
perfect to me... where should I paste it?
"Patrick Molloy" wrote:
assuming V5 gets data after I5, maybe you could use the work***'s change
event...
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = Range("V5").Address Then
If Range("V5") < Range("I5") Then
Range("J5").Value = "STOP"
Range("J5").Interior.Color = vbRed
End If
End If
End Sub
or just add the if check to whatever code you're running to pull in the data
"John" <John@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C542543D-CB96-45E7-83BD-AF60C611360A@xxxxxxxxxxxxxxxx
> I don't want the cell to change back if the value goes back above the > set
> value in I5... I want it to trigger and stay "STOP" so I don't want to > use
> a
> formula
>
> "Patrick Molloy" wrote:
>
>> J5: =IF(V5<I5,"STOP","")
>>
>> and set conditional formatting when J5 value ="STOP"
>>
>> "John" <John@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:B2AEA0EA-3520-42CD-B77B-68E9A7F20F1C@xxxxxxxxxxxxxxxx
>> > I have a *** that updates from an external feed...
>> >
>> > I want to change cell J5 to "STOP" and format it RED if cell V5 is
>> > below
>> > the
>> > value found in I5
>> >
>> > is there an 'on calculate' command?
>>
>>
.
- References:
- Easy one...
- From: John
- Re: Easy one...
- From: Patrick Molloy
- Re: Easy one...
- From: John
- Re: Easy one...
- From: Patrick Molloy
- Re: Easy one...
- From: John
- Easy one...
- Prev by Date: Re: Combine Records; Difficult
- Next by Date: Re: Search column...change row to BOLD
- Previous by thread: Re: Easy one...
- Next by thread: Re: Easy one...
- Index(es):