I need help with my code. I am trying to have every other line shaded except when column 2 has “X” in it.
If Column “B” has an X in it the row should have the yellow fill then start the every other row gray shading until column “B” has another “X” and that row is to be filled yellow.
I get a “Type Mismatch error 13” with “If Range("B" & rng) = "X" Then” highlighted. I tried using “If Range("B" & rng).Value = "X" Then” it gives me the same error.
I have uploaded a sample workbook with sheet1 that I have the code on that errors, and sheet2 with a sample of what I am trying to do.
All Help is greatly appreciated!
Here is my code:
Thanks again for any help!Please Login or Register to view this content.
Bookmarks