Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks, that's much better.
I think I tried to write it like that to begin with, but I didn't have (False, False) for the ActiveCell.Address, therefore the addressing wasn't correct in the ISERROR formulas. Bob Phillips wrote: Sub Highlight_FALSE_and_Errors() With Selection .FormatConditions.Delete .FormatConditions.Add Type:=xlCellValue, _ Operator:=xlEqual, _ Formula1:="FALSE" .FormatConditions(1).Font.ColorIndex = 3 .FormatConditions.Add Type:=xlExpression, _ Formula1:="=ISERROR(" & ActiveCell.Address(False, False) & ")" .FormatConditions(2).Font.ColorIndex = 3 End With End Sub -- HTH Bob Phillips (replace xxxx in the email address with gmail if mailing direct) I've created a macro that will apply 2 conditional formats to whichever cells I have selected. The first condition changes the cell text to red if the [quoted text clipped - 31 lines] Set rngSelection = Nothing End Sub -- Message posted via http://www.officekb.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro wait 30 seconds then Complete the Macro | Excel Discussion (Misc queries) | |||
inefficient code? | Excel Programming | |||
Inefficient? | Excel Programming | |||
Inefficient Space Removal | Excel Programming | |||
Loop worked but is it inefficient? | Excel Programming |