nic
2008-07-08 10:29:31 UTC
My current code only applies the formatting to the column with the matching text. See below:
Sub practice()
'loop for formatting subtotaled rows
Cells.Select
For Each mycell In Selection
If mycell.Value Like "*CO*" Then
Range(Selection, Selection.End(xlToRight)).Select
myrange.Font.Bold = True
myrange.Interior.ColorIndex = 35
End If
Next
End Sub