Jamie Weeks
New Member
- Joined
- Nov 8, 2016
- Messages
- 4
I've never used macros before but I've tried a few macros I found online to solve and no success so far. Here's what I'm trying to do:
My workbook contains around 20 sheets (tabs). I will choose one to use for this example:
For the sheet (tab) named "Mirador" I would like the tab color to change automatically based upon the text in cell G9.
If G9 = "GREEN" I want the tab to be green.
If G9 = "YELLOW" I want the tab to be yellow.
If G9 = "RED" I want the tab to be red.
If G9 = "COMPLETE" I want the tab to be blue.
If G9 = "CXLD" I want the tab to be pink.
Cell G9 is a merged cell with G9 being the first cell in the range. I'm not sure if that impacts this.
For clarity, just to make sure I'm doing the right thing. I put the macro text in the window that pops up when I right click the tab and click "view code", correct?
Thank you in advance!
Jamie
My workbook contains around 20 sheets (tabs). I will choose one to use for this example:
For the sheet (tab) named "Mirador" I would like the tab color to change automatically based upon the text in cell G9.
If G9 = "GREEN" I want the tab to be green.
If G9 = "YELLOW" I want the tab to be yellow.
If G9 = "RED" I want the tab to be red.
If G9 = "COMPLETE" I want the tab to be blue.
If G9 = "CXLD" I want the tab to be pink.
Cell G9 is a merged cell with G9 being the first cell in the range. I'm not sure if that impacts this.
For clarity, just to make sure I'm doing the right thing. I put the macro text in the window that pops up when I right click the tab and click "view code", correct?
Thank you in advance!
Jamie