+ Reply to Thread
Results 1 to 8 of 8

Change tab color based on a cell color

  1. #1
    Registered User
    Join Date
    01-15-2013
    Location
    Moncton
    MS-Off Ver
    Excel 2016
    Posts
    95

    Change tab color based on a cell color

    I have a cell that changes from red to yellow based on other cells value. Is there a way to have the tab change color to match a certain cells color.

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Change tab color based on a cell color

    this will turn the tab to Red

    Please Login or Register  to view this content.
    you'll have to convert the 255 to the color of your cell...let me know if you need help with that...
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Change tab color based on a cell color

    Please Login or Register  to view this content.
    this will determine the current color of a cell and then adjust the tab color....

  4. #4
    Registered User
    Join Date
    01-15-2013
    Location
    Moncton
    MS-Off Ver
    Excel 2016
    Posts
    95

    Re: Change tab color based on a cell color

    It didn't work. I even tried opening a new workbook to make sure it wasn't formulas inside my current workbook that was affecting it. In the new workbook I right click the tab and clicked on view code then pasted what you said above. Highlighted cell A1 and tab color didn't change. Did I miss something.

  5. #5
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Change tab color based on a cell color

    yes....did you run the code after you changed the cell color?...did you change to a new worksheet because the color on an active sheet tab looks sort of white with red around the edges....if you want this to happen automatically you have to put in the worksheet area and use something like Worksheet.change (there is a list)....the OP was a little lacking on how you want this to work....

  6. #6
    Registered User
    Join Date
    01-15-2013
    Location
    Moncton
    MS-Off Ver
    Excel 2016
    Posts
    95

    Re: Change tab color based on a cell color

    Let me try to explain it a bit better. I have a workbook with 6 worksheet. The first worksheet is called EQUIPMENT. In this sheet I have multiple rows with equipment names. Beside the equipment name I put the price. On the bottom of the column with the price I have the total price for all equipment combined. As long as there is 1 pieces of equipment that doesn't have a price the cell with the total is red. Once all equipment has a price the cell with the total turns yellow. I would like the tab to turn yellow automatically when the cell turns yellow. All the other worksheet functions similarly. This way no matter wath worksheet I'm on I know if I'm missing prices or if all are there. I hope this clarifies what I'm looking for.

  7. #7
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Change tab color based on a cell color

    for each of the worksheets you need to have this piece of code....it's clunky but it works....so, in the project explorer of the VBA editor you will see your worksheet names...double click on the worksheet and copy and paste into each worksheet....remember, you'll only see a small change in color on the bottom of the tab until you move off the tab...

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    01-15-2013
    Location
    Moncton
    MS-Off Ver
    Excel 2016
    Posts
    95

    Re: Change tab color based on a cell color

    I did as instructed above but now the tab is always white no matter the color of the cell. And yes i did move of the tab to make sure.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. change fill color of a range of cells based on color of a cell?
    By DarMelNel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-20-2014, 04:48 PM
  2. Change Font Color Based On Adjacent Cell Color
    By Zorro9758 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-11-2013, 02:47 PM
  3. VBA / Macro help needed to change the barchart color based on Cell Color
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-28-2012, 09:15 AM
  4. Replies: 5
    Last Post: 05-10-2012, 10:49 PM
  5. change text color based on adjacent cell text color
    By matthewst in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-01-2005, 03:49 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1