Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Just getting started with Visual Basic.
I have a sinple worksheet. Cell B1 contains the formula: "SUM(A1:A5). The Macro is: Sub ConditionalBkgChg() If Range("B1") < 5 Then Range("B1").Select Selection.Interior.ColorIndex = xlNone Range("A1").Select Else Range("B1").Select Selection.Interior.ColorIndex = 46 Range("A1").Select End If End Sub If B1 is 5 or greater then the background color turns red. The Macro works but... I have to run the macro manually after changing the values. How can I make the macro run continuously? Thanks Johnb3 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro Execution | Excel Discussion (Misc queries) | |||
Halt Macro Execution | Excel Programming | |||
Continuous running macro | Excel Programming | |||
Macro Execution Time | Excel Programming | |||
slow macro execution | Excel Programming |