Littlemalky
Board Regular
- Joined
- Jan 14, 2011
- Messages
- 223
I'm super confused. So i have my code set up that I pretty much just adjusted from the recorder macro with the exact color reference that the recorder created, however, when I run my macro with that same color number it gave me, it breaks and doesn't recognize it. Does anyone know how to make my font red? This is what I have:
Code:
LastRow = ActiveSheet.UsedRange.Row - 1 + ActiveSheet.UsedRange.Rows.Count
Range("E2:E" & LastRow).FormatConditions.Add Type:=xlTextString, String:="D-", TextOperator:=xlBeginsWith
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
With Selection.FormatConditions(1).Font
.Color = 3
.TintAndShade = 0
End With
Selection.FormatConditions(1).StopIfTrue = False