+ Reply to Thread
Results 1 to 8 of 8

Change color of tab automaticly

  1. #1
    Registered User
    Join Date
    02-04-2015
    Location
    Stockholm, Sweden
    MS-Off Ver
    2013
    Posts
    4

    Change color of tab automaticly

    I have an excel document with a lot of questions to be answered with help of checkboxes. When the questions are answered, I want the color of the current tab will change from red to green automaticly. How do I achieve this?

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Change color of tab automaticly

    Are the checkboxes in a userform or on a sheet? You will need code to trigger the tab colour change, but the code for changing the colour of the tab is:

    Please Login or Register  to view this content.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Registered User
    Join Date
    02-04-2015
    Location
    Stockholm, Sweden
    MS-Off Ver
    2013
    Posts
    4

    Re: Change color of tab automaticly

    The checkboxes are on a sheet, connected to the cells they are located in. Is It possible to use If? For exemple: if ((c2 or d2 or e2) and (c3 or d3 or e3) is true) then worksheet(doc name).Tab.ColorIndex = 3?

  4. #4
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Change color of tab automaticly

    Can you provide a workbook example?

  5. #5
    Registered User
    Join Date
    02-04-2015
    Location
    Stockholm, Sweden
    MS-Off Ver
    2013
    Posts
    4

    Re: Change color of tab automaticly

    Test.xlsx

    I hope that I managed to attach a test file!

  6. #6
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Change color of tab automaticly

    Hi Joel,

    Is this what you are looking for?
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-04-2015
    Location
    Stockholm, Sweden
    MS-Off Ver
    2013
    Posts
    4

    Re: Change color of tab automaticly

    Thank you!
    That was exactly what I meant!

  8. #8
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Change color of tab automaticly

    You are welcome Joel
    Please mark the post as solved if you are satisfied.
    Cheers.

+ 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. Mouse rolls over to cell will change the tab color, font color and tp bold type
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-20-2013, 10:36 AM
  2. [SOLVED] Change #N/A to another text automaticly
    By Crispy85 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-10-2013, 03:38 AM
  3. Format cell color on change, how to change the color in other columns as well?
    By s80NL in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-28-2007, 09:24 PM
  4. [SOLVED] How can i change the text color in a cell automaticly if i write.
    By copernic in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2005, 06:06 AM
  5. Replies: 2
    Last Post: 01-29-2005, 05:06 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