Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Everyone,
Following is my code, which is used more than once in the Sub. Range("F88").Select Selection.FormatConditions.Delete Selection.FormatConditions.Add Type:=xlExpression, Formula1:="=E88<1" Selection.FormatConditions(1).Font.ColorIndex = 15 Selection.FormatConditions(1).Interior.ColorIndex = 15 Easy enough I suppose. On F88, there will be an error because the formula returns a #NUM if there's nothing to calucula, but when I print, even though the font is the same color as the cell, it will print out in black, can that be modified? Ideally, I'd like to make an if statement that if E88 is zero, simply shade the cell, otherwise perform the following formula. Range("F88").Select Selection.FormulaArray = _ "=MEDIAN(IF(R[-86]C[50]:R[1412]C[50]=""NOF"",R[-86]C[54]:R[1412]C[54]))" Thanks in advance for your help! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formatting Conditional Formatting Icon Sets | Excel Discussion (Misc queries) | |||
Formatting cells in a column with conditional formatting? | Excel Discussion (Misc queries) | |||
Protect Cell Formatting including Conditional Formatting | Excel Discussion (Misc queries) | |||
conditional Formatting based on cell formatting | Excel Worksheet Functions | |||
Conditional Formatting that will display conditional data | Excel Worksheet Functions |