I want to highlight the row that contains letters starting with "ZZ*" green
Then highlight the row that contains letters starting with "ZV*" yellow
and so on.
I used conditional formatting formula inside VB script, it works with the first condition but then ignores the second condition. If anyone has a different way or can improve my code it'll be great. thank you.
Sub color1()
With Range("A:Z").FormatConditions
.Delete
Range("A2").Activate
.Add Type:=xlExpression, Formula1:="=ISNUMBER(MATCH(""ZZ*"",1:1,0))"
.Item(1).Interior.ColorIndex = 41
End With
End Sub
The A column has
ZZ3543
ZV5635
ZX4635
ZC3456
ZV3456