Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is it possible to do a condional format of a range D123:N123 that would
check for the word No? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
this is just a macro i recorded while doin the conditional formatting. if
no is entered into this range, the cell will have whute text on red background Sub Macro1() Range("D123:N123").Select Selection.FormatConditions.Delete Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlEqual, _ Formula1:="=""no""" Selection.FormatConditions(1).Font.ColorIndex = 2 With Selection.FormatConditions(1).Borders(xlLeft) .LineStyle = xlContinuous .Weight = xlThin .ColorIndex = xlAutomatic End With With Selection.FormatConditions(1).Borders(xlRight) .LineStyle = xlContinuous .Weight = xlThin .ColorIndex = xlAutomatic End With With Selection.FormatConditions(1).Borders(xlTop) .LineStyle = xlContinuous .Weight = xlThin .ColorIndex = xlAutomatic End With With Selection.FormatConditions(1).Borders(xlBottom) .LineStyle = xlContinuous .Weight = xlThin .ColorIndex = xlAutomatic End With Selection.FormatConditions(1).Interior.ColorIndex = 3 Range("D6").Select End Sub -- Gary "Patrick Simonds" wrote in message ... Is it possible to do a condional format of a range D123:N123 that would check for the word No? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for your reply. I found a solution trying different options:
=COUNTIF(D122:R122,"no") "Gary Keramidas" wrote in message ... this is just a macro i recorded while doin the conditional formatting. if no is entered into this range, the cell will have whute text on red background Sub Macro1() Range("D123:N123").Select Selection.FormatConditions.Delete Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlEqual, _ Formula1:="=""no""" Selection.FormatConditions(1).Font.ColorIndex = 2 With Selection.FormatConditions(1).Borders(xlLeft) .LineStyle = xlContinuous .Weight = xlThin .ColorIndex = xlAutomatic End With With Selection.FormatConditions(1).Borders(xlRight) .LineStyle = xlContinuous .Weight = xlThin .ColorIndex = xlAutomatic End With With Selection.FormatConditions(1).Borders(xlTop) .LineStyle = xlContinuous .Weight = xlThin .ColorIndex = xlAutomatic End With With Selection.FormatConditions(1).Borders(xlBottom) .LineStyle = xlContinuous .Weight = xlThin .ColorIndex = xlAutomatic End With Selection.FormatConditions(1).Interior.ColorIndex = 3 Range("D6").Select End Sub -- Gary "Patrick Simonds" wrote in message ... Is it possible to do a condional format of a range D123:N123 that would check for the word No? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using conditional formating to copy range of cells | Excel Discussion (Misc queries) | |||
Conditional Formating | Excel Worksheet Functions | |||
Install dates formating using conditional formating? | Excel Discussion (Misc queries) | |||
conditional formating?? | Excel Worksheet Functions | |||
Conditional formating | Excel Programming |