+ Reply to Thread
Results 1 to 7 of 7

Changing Tab Color based on cell numberic value

  1. #1
    Registered User
    Join Date
    10-07-2013
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Changing Tab Color based on cell numberic value

    Thank you for your help. though I have a lot of experience with Excel, I have never gotten into Marcos much and never VBA, so any assistance, please tell me how to do it. I am using Office 2010.

    I have a workbook that tracks attendance for our employees. It has over 80 tabs on it. I am trying to make it so that if a cell value (F3) is above a number, it would change the tab color for that worksheet.

    I am looking at if the cell value is over 5 = yellow, over 7 = orange, over 9 = red.

    Thank you for your help!

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,467

    Re: Changing Tab Color based on cell numberic value

    Hi there,

    Take a look at the attached workbook which will allow you to "play" easily with the trigger values on the ten different worksheets - these trigger values can all be set on Sheet "Sheet1", and will be transferred to the various worksheets. You can then update the worksheet tab colours by clicking on the "Update Sheet Tabs" button.

    The code used is as follows and can be easily customised for a different trigger cell, different trigger levels, and tab different colours if required:

    Please Login or Register  to view this content.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Attached Files Attached Files

  3. #3
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,467

    Re: Changing Tab Color based on cell numberic value

    Hi again,

    I've had great difficulty in uploading all of my last post - despite several attempts, the last part was omitted every time!

    It read:



    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

    FOR ADMINISTRATORS: I've had this problem on several occasions in the past, but never as persistently as this time. The full text of the post is displayed if I use the "Printable Version" format. Is there a site problem or do I need a new pc?

    Regards,

    Greg M
    Last edited by Greg M; 10-07-2013 at 07:51 PM. Reason: Comment re "Printable Version" added

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Changing Tab Color based on cell numberic value

    Hello kartzweb,

    Welcome to the Forum.

    The attached sample Workbook should get you on track. Using ThisWorkBook_SheetChange Event in the VBE, makes it possible.

    Regards
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  5. #5
    Registered User
    Join Date
    10-07-2013
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Changing Tab Color based on cell numberic value

    Wow. Thank you so much for your help and quick response. This will work out great!

  6. #6
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,467

    Re: Changing Tab Color based on cell numberic value

    Hi again,

    Many thanks for your feedback - glad I was able to help.

    Regards,

    Greg M


    FOR ADMINISTRATORS: Please ignore my previous message re difficulties in displaying the entire post. The problem appears to have been resolved by tweaking some browser settings. Greg M

  7. #7
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Changing Tab Color based on cell numberic value

    Hello kartzweb,

    Glad we could help.

    If you are satisfied with the solution you had been provided with, then please mark your thread as solved.

    You may also click on the star at the bottom of the contributor's Post to add to his/her Reputation.

    Regards.
    Last edited by Winon; 10-08-2013 at 11:00 AM. Reason: Keyboard cannot spell!

+ 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. [SOLVED] Changing fill color of shapes based on changing cell value
    By Stefan1983 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2012, 10:33 AM
  2. Changing tab color based on cell value
    By PrizeGotti in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-22-2012, 07:29 AM
  3. Changing cell color based on value
    By smraines in forum Excel General
    Replies: 6
    Last Post: 12-30-2009, 07:39 PM
  4. changing cell color based on changing values
    By tvonbehren in forum Excel General
    Replies: 2
    Last Post: 09-16-2009, 12:33 PM
  5. Changing background color based on different cell
    By djarcadian in forum Excel General
    Replies: 3
    Last Post: 08-10-2006, 05:44 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