+ Reply to Thread
Results 1 to 2 of 2

Need formula to change Tab color based on Cell returned value

  1. #1
    Registered User
    Join Date
    02-13-2013
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    1

    Need formula to change Tab color based on Cell returned value

    hello .. I need help, I need to have a tab or tabs color change when a value in a certain cell is a certain value.. 4 possible values, 4 different colors.

    Im stumped.. But I know it can be done.. Soo I am consulting you experts out there!!

    thanks in advance for your help.

    the worksheet the value is on is "ScoreCard" and the cell that contains the formulated answer is cell "D19" and as of now the various tabs to turn colors should be referenced as sheet1,sheet2,sheet3,sheet4

    etc..

    thanks !!

  2. #2
    Valued Forum Contributor
    Join Date
    11-20-2012
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2010
    Posts
    597

    Re: Need formula to change Tab color based on Cell returned value

    you need to use VBA
    based on your description i think this is what you want

    hit Alt+F11 to open up the VBA window then on the left there should be a window with all of your open excel files, find yours and expand the microsioft excel objects if it's not already expanded
    then double click on the sheet named ScoreCard
    then in the code window that pops up there will be a pulldown menu that will say (general) change that to Worksheet and paste the code below

    I chose random colors for the tabs you can change them by recording a macro and changing the colorindex = and tintandshade = to the values you chose

    if the value is outside the tab color will be set to "none"

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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