F
Father Guido
Hi,
Essentially I have a number of possible results, such as:
Cls:A Cls:B Cls:C Cls:This Cls:That that I want to color the
entire row light green. The value I’m checking is in column E.
How do I use a left argument in a loop statement? Neither of these
work, but they should give you an idea of what I’m trying to do. If
either can be tweaked to work that would be great, but all other
suggestions are welcome. Thanks.
Norm
Range("A3").Select
Do Until ActiveCell.Value = blank
If ActiveCell.Offset(0, 4).Value = "Cls:*" Then
ActiveCell.EntireRow.Select
With Selection.Interior
.ColorIndex = 35
.Pattern = xlSolid
End With
End If
ActiveCell.Offset(1, 0).Select
Loop
<OR>
Range("A3").Select
Do Until ActiveCell.Value = blank
ActiveCell.Offset(0, 4).Select
If ActiveCell.Left(4) = "Cls:*" Then
ActiveCell.EntireRow.Select
With Selection.Interior
.ColorIndex = 35
.Pattern = xlSolid
End With
End If
ActiveCell.Offset(1, -4).Select
Loop
Essentially I have a number of possible results, such as:
Cls:A Cls:B Cls:C Cls:This Cls:That that I want to color the
entire row light green. The value I’m checking is in column E.
How do I use a left argument in a loop statement? Neither of these
work, but they should give you an idea of what I’m trying to do. If
either can be tweaked to work that would be great, but all other
suggestions are welcome. Thanks.
Norm
Range("A3").Select
Do Until ActiveCell.Value = blank
If ActiveCell.Offset(0, 4).Value = "Cls:*" Then
ActiveCell.EntireRow.Select
With Selection.Interior
.ColorIndex = 35
.Pattern = xlSolid
End With
End If
ActiveCell.Offset(1, 0).Select
Loop
<OR>
Range("A3").Select
Do Until ActiveCell.Value = blank
ActiveCell.Offset(0, 4).Select
If ActiveCell.Left(4) = "Cls:*" Then
ActiveCell.EntireRow.Select
With Selection.Interior
.ColorIndex = 35
.Pattern = xlSolid
End With
End If
ActiveCell.Offset(1, -4).Select
Loop