I have the code below that works. It searches column A looking for "00" as the left most characters and then formats that cell with white text and black interior.
What I need to happen is for it to not only format the cell in Column A but then to copy that same format from column A to column W. Ideally I need it to search column for "00" as the left most characters in column A and then it applies the formatting above from column A to column W. This is an often updated report and where "00" appears varies each time the data is pulled.
I've gotten this code to "work" using entirerow but I do not want the "entirerow" formatted in this way.
Appreciate the help! Thanks!
VBA Code:
Dim cel As Range
For Each cel In Range("A6:A300")
If Left(cel.Value, 2) = "00" Then
cel.Font.Color = vbWhite
cel.Interior.Color = vbBlack
End If
Next
What I need to happen is for it to not only format the cell in Column A but then to copy that same format from column A to column W. Ideally I need it to search column for "00" as the left most characters in column A and then it applies the formatting above from column A to column W. This is an often updated report and where "00" appears varies each time the data is pulled.
I've gotten this code to "work" using entirerow but I do not want the "entirerow" formatted in this way.
Appreciate the help! Thanks!