Hi
Can you please review the forum rules about wrapping your code. I've edited your post for you this time.
See if this gets you started. You don't say how you intend to change the color for each iteration.
Sub bbb()
For i = 5 To Cells(Rows.Count, "C").End(xlUp).Row
If Application.WorksheetFunction.IsText(Cells(i, "C")) Then
With Cells(i, "C").Resize(1, 3)
.Borders(xlDiagonalDown).LineStyle = xlNone
.Borders(xlDiagonalUp).LineStyle = xlNone
With .Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.Weight = xlThick
.ColorIndex = 6
End With
With .Borders(xlEdgeTop)
.LineStyle = xlContinuous
.Weight = xlThick
.ColorIndex = 6
End With
With .Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.Weight = xlThick
.ColorIndex = 6
End With
With .Borders(xlEdgeRight)
.LineStyle = xlContinuous
.Weight = xlThick
.ColorIndex = 6
End With
End With
End If
Next i
End Sub
rylo
Bookmarks