Ok, this is going to be easy for anyone comfortable with vba to answer. I however am a beginner. My goal is simple, but I wanted to do it through code, just to challenge myself. What I want to do is go down the row and if column E is a certain value, highlight A-E in that row to be a certain color. So if E3 is the number 2, I want A2:E2 to be highlighted orange. Likewise if E7 is the number 4 I want A7:E7 to be highlight blue. Make sense? Alright here's the code I wrote to attempt to make it work:
I know where I'm going wrong. It's the "Range("A& cellnumber:E& cellnumber").Select" part. The problem is that I don't know how to say, if x = 7 select E7. I know there must be a simple way to do it. I remember from reading something that the & operator joined things, but clearly my guess at the syntax here isn't correct. Thanks for taking your time to help.![]()
Please Login or Register to view this content.
Bookmarks