Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have within a procedure the following code. I set the variables sRed, SOrange etc. earlier in the procedure, and would also like to set the Operator:= blah, blah as a variable. I've tried passing it as a string and variant variable but to no avail. Can anyone help me out please? i.e how can I get the bit following the Operator:= to recognise a variable.? Usual TIA. With rMyrange.FormatConditions .Add Type:=xlCellValue, Operator:=xlLess, Formula1:=sRed .Add Type:=xlCellValue, Operator:=xlLess,Formula1:=sOrange .Add Type:=xlCellValue, Operator:=xlGreater, Formula1:=sGreen End With __ Richard Buttrey Grappenhall, Cheshire, UK __________________________ |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Operator for Contains | Excel Worksheet Functions | |||
XOR Operator - How? | Excel Discussion (Misc queries) | |||
Mod operator | Excel Programming | |||
Need help with the Like Operator | Excel Programming | |||
Can the AND operator be of use here? | Excel Programming |