+ Reply to Thread
Results 1 to 9 of 9

Tab Color

  1. #1
    Registered User
    Join Date
    05-16-2014
    MS-Off Ver
    Excel 2003
    Posts
    26

    Tab Color

    I am trying to have tabs automatically colored when a certain cell is greater than zero. This would allow me to immediately identify which tab has been edited in a workbook so I don't even have to look at the other tabs. How would I write this into my code? Thank you in advance for the help!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Tab Color

    1) Is this supposed to happen on every sheet?

    A single ThisWorkbook macro could watch every sheet in the workbook and color tabs accordingly.

    2) Almost every sheet?

    The one macro could exclude a short list of sheet names.

    3) What cell?

    4) What value?

    5) What colors?
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

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

    Re: Tab Color

    This could get you going,

    You only need to check the Red Tabs.

    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] .

  4. #4
    Registered User
    Join Date
    05-16-2014
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Tab Color

    Quote Originally Posted by JBeaucaire View Post
    1) Is this supposed to happen on every sheet?

    Yes I will need this to happen on every sheet in the workbook (there are about 20 sheets in the workbook)

    A single ThisWorkbook macro could watch every sheet in the workbook and color tabs accordingly.

    2) Almost every sheet?

    The one macro could exclude a short list of sheet names.

    3) What cell?

    It will reference cell "B2"

    4) What value?

    Anything greater than 0

    5) What colors?
    Color the tab red when B2 is greater than 0

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Tab Color

    Is B2 a formula or manually entered values?

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Tab Color

    Put this into the ThisWorkbook module, see if it gives you the behavior you want.

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    05-16-2014
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Tab Color

    Quote Originally Posted by JBeaucaire View Post
    Is B2 a formula or manually entered values?
    Oops meant to say cell V2. Either way it is the end of a formula that has been dragged out by part of my code.

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Tab Color

    Try the code above, edit the cell address accordingly.

  9. #9
    Registered User
    Join Date
    05-16-2014
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Tab Color

    Quote Originally Posted by JBeaucaire View Post
    Try the code above, edit the cell address accordingly.
    That worked perfectly. Thank you so much for your help!

+ 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. Replies: 3
    Last Post: 05-30-2014, 10:24 AM
  2. Replies: 3
    Last Post: 01-08-2014, 03:56 PM
  3. Replies: 4
    Last Post: 12-29-2013, 11:41 PM
  4. Replies: 2
    Last Post: 02-25-2013, 03:36 AM
  5. Replies: 12
    Last Post: 09-18-2012, 03:13 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