iamtherascalking
New Member
- Joined
- Jan 30, 2009
- Messages
- 8
What's wrong with the following?
It keeps getting caught at
It keeps getting caught at
Code:
.FormatConditions(1).Font.Color = RGB(255, 0, 0)
Code:
Sub Macro1()
Cells.FormatConditions.Delete
Columns("A:A").Select
With Selection
.FormatConditions.Add Type:=xlExpression, Formula1:="=OR($B1=""PASS"",$B1=""FAIL"")"
.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
With .FormatConditions(1).Font
.Bold = True
.Italic = False
.TintAndShade = 0
End With
.FormatConditions(1).StopIfTrue = False
End With
'=================================
Columns("A:E").Select
With Selection
.FormatConditions.Add Type:=xlExpression, Formula1:="=OR($B1=""FAIL"",$B1=""SCRAP"")"
.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
.FormatConditions(1).Font.Color = RGB(255, 0, 0)
.FormatConditions(1).Font.TintAndShade = 0
.FormatConditions(1).StopIfTrue = False
End With
End Sub