bamaisgreat
Well-known Member
- Joined
- Jan 23, 2012
- Messages
- 831
- Office Version
- 365
- Platform
- Windows
Do any you have away I can change the code below to have the entire row change to red instead of just the selected cell? Thanks as always
Code:
Cells.Select
Selection.FormatConditions.Add Type:=xlTextString, String:="(OBSOLETE", _
TextOperator:=xlBeginsWith
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
' adam test
Dim test As Integer
test = Selection.Row
' end test
With Selection.FormatConditions(1).Interior
.PatternColorIndex = xlAutomatic
.Color = 255
.TintAndShade = 0
End With
Selection.FormatConditions(1).StopIfTrue = False