Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Worksheet_Change
I have the following sub to determine whether another sub should be run:
Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column = 5 And Range("e" & Target.Row) < "" Then MsgBox ("This line qualifies for the sub!") ' Call the sub End If End Sub Is there a way to only run the sub if target is CHANGED from 0 to something that 0 ? Rasmus |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Worksheet_Change
Only if you store the values of Column E and then compare the appropriate
value to the current value. -- Regards, Tom Ogilvy "Rasmus" wrote in message t.cable.rogers.com... I have the following sub to determine whether another sub should be run: Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column = 5 And Range("e" & Target.Row) < "" Then MsgBox ("This line qualifies for the sub!") ' Call the sub End If End Sub Is there a way to only run the sub if target is CHANGED from 0 to something that 0 ? Rasmus |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Worksheet_Change help | Excel Discussion (Misc queries) | |||
Worksheet_change won't run | Excel Discussion (Misc queries) | |||
worksheet_change | Excel Programming | |||
worksheet_change vs. calculate, and worksheet_change not running | Excel Programming | |||
worksheet_change vs. calculate, and worksheet_change not running | Excel Programming |