+ Reply to Thread
Results 1 to 2 of 2

trying to color tabs based on conditions

  1. #1
    Registered User
    Join Date
    04-22-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    1

    trying to color tabs based on conditions

    Hi. I am trying to figure out a way to color tabs in a workbook template ("sample") based on cell values or the color of another corresponding tab.

    For example:
    a) if cell b5 is not zero, color the tab pink
    or
    b) if sheet3 is colored purple (tab), then color sheet7 pink

    Any help would be greatly appreciated.

    Thanks!

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: trying to color tabs based on conditions

    You can try this macro that you will put into the section "ThisWorkbook" of the Visual Basic Editor.
    Changing the active sheet color will not show until you select another sheet.
    You can play with the codes to get what you want. It will be a little bit tricky.
    I'm working with the colorindex as it is easier to handle but you have to check what colorindex is assigned to a tab before using its value in an IF statement.
    Please Login or Register  to view this content.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

+ 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] vba code for hide/unhide tabs based on color
    By Allseasons in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 03-17-2014, 04:04 PM
  2. [SOLVED] Macro to change multiple sheet tabs color based on a cell value
    By greywu1f in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-19-2012, 10:31 AM
  3. Replies: 6
    Last Post: 02-01-2012, 05:29 PM
  4. Copy info from Master tab to other tabs based on conditions
    By nadiaraciti in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-23-2011, 05:53 AM
  5. Hide Rows in Index Sheet Based On Color Of Other Tabs
    By mgaworecki in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-20-2007, 10:58 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