Hi EJE
There is no need for code for what you want to achieve.
This is an Excel built-in function available from the Excel menu:
Format, Conditional formatting
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.