Hello everyone.
First of all, I’m a VBA rookie, so please bear with me
This is what I’m trying to do:
I have one sheet (Sales) with a table (Table1) that looks like this.
Sales.jpg
What I’m trying to achieve is to set a specific background color to every third row, except for cells that don’t have a value.
The background color is based on the brand name (in column 2). The color for each brand is stipulated from another sheet (Colors) that looks like this:
Colors.jpg
I found this code online that colors every third row as I want. But as you can see in the code it colors the whole row, so I added a macro to clear
all the cells inside the table without a value.
But it’s really slow and gets slower for every brand that’s added to the table.
I guess there’s a much better and smarter way to do this, but it’s beyond my knowledge
and I hope I can get some help and guidance to make the script work better
Thanks!
Bookmarks