Hi all!
I should start out by clarifying, I have no programming experience with vba code. I require some assistance with a code for changing the colour of a sheet tab based on a particular number appearing in a range of cells.
I have attached an example to help with explaining what I am after.
The scenario is I have a cell range (C2:C16) that may or may not contain a value. If a cell in that range doesn't contain a value then no action is required, if it contains a value then I need to confirm if the corresponding cell in that row in range A2:A16 contains text or not. I have a formula I am using in range E2:E16 =IF(ISBLANK(C2),0,IF(AND(C2>0,A2<>""),1,2)) to return a 0,1,2 value to satisfy 3 different criteria. I then require a vba code that will change the colour of the sheet tab red if a "2" is returnerd in any cell in range E2:E16.
I tried using this vba code to no avail (it is in my excel sheet example)
ANy help with this would be greatly appreciated.
Bookmarks