+ Reply to Thread
Results 1 to 6 of 6

Change tab color with check boxes?

  1. #1
    Registered User
    Join Date
    01-04-2019
    Location
    KS
    MS-Off Ver
    2013
    Posts
    3

    Change tab color with check boxes?

    I was wondering if it is at all possible to change the color of a tab (where the sheet # or sheet name is displayed) based off of if a checkbox is checked.
    I currently have a successful action of placing an 'x' in the box, where it changes the color by using:

    Please Login or Register  to view this content.
    Essentially, once we start the list in cell A3, it colors the tab yellow - for our purpose indicating that it is in process.
    Once I put an x in the last "All completed" Cell A96, it colors the tab gray indicating everything is completed on that tab, or in my particular case, that day.

    I've tried linking the checkbox to particular cells and replacing the blank with FALSE and the "x" value to TRUE, but it doesn't seem to be changing the color... so I'm sure I'm doing something wrong as I don't have a whole lot of experience with VBA. Google has gotten a lot of results for changing colors of cells, but can't seem to find changing tab colors.

    I know it may seem a bit redundant, since I already have a successful action with the x's. I am a trainer and compiling a day by day (sheet by sheet in this case) training checklist, and dont want to have to run back and forth to my keyboard to mark a x, when I can just have my wireless mouse to navigate and click the checkbox instead.
    Last edited by bosswick; 01-04-2019 at 04:50 PM.

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,009

    Re: Change tab color with check boxes?

    .
    Paste this into the sheet module :



    Please Login or Register  to view this content.

    Color list : http://access-excel.tips/excel-vba-color-code-list/

  3. #3
    Registered User
    Join Date
    01-04-2019
    Location
    KS
    MS-Off Ver
    2013
    Posts
    3

    Re: Change tab color with check boxes?

    Hmmm... didn't appear to have any effect on the color of the tab when checking the box for me?
    I removed my old script and just used that and also tried adding a new checkbox and adjusting the checkbox number in the script. :|

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,009

    Re: Change tab color with check boxes?

    .
    The macro requires you to have an ActiveX Checkbox on the sheet. Do not use a Userform Checkbox.
    Attached Files Attached Files
    Last edited by Logit; 01-04-2019 at 07:48 PM.

  5. #5
    Registered User
    Join Date
    01-04-2019
    Location
    KS
    MS-Off Ver
    2013
    Posts
    3

    Re: Change tab color with check boxes?

    Ah, that did the trick! Thank you!

  6. #6
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,009

    Re: Change tab color with check boxes?

    .
    You are welcome.

+ 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. Changing checkbox background color - loop to check all tick boxes on sheet for status TRUE
    By Vegiepie2016 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-19-2016, 10:33 AM
  2. Check boxes that delete other check boxes and change the color of another cell.
    By nhamhamilton in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-29-2014, 02:40 PM
  3. How to select multiple check boxes, that change pivot table?
    By tmarcello935 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-21-2014, 01:23 PM
  4. [SOLVED] Coding Yes/No option buttons to not allow check boxes or require check boxes
    By HeyInKy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-30-2014, 11:32 PM
  5. Replies: 2
    Last Post: 04-29-2013, 07:25 PM
  6. I need a code for presence check to check multiple text boxes and combo boxes
    By Lee_wwfc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2013, 01:53 PM
  7. Automatic setting of check boxes based on other check boxes?
    By ArchiveMike in forum Excel General
    Replies: 5
    Last Post: 07-31-2012, 09:43 AM

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