+ Reply to Thread
Results 1 to 2 of 2

Change Color of Sheet Tabs by Matching Cell Colors

  1. #1
    Forum Contributor
    Join Date
    12-13-2007
    Location
    Central New York
    MS-Off Ver
    Home: 2007, Office: 2010
    Posts
    158

    Change Color of Sheet Tabs by Matching Cell Colors

    Hi All,

    I have a workbook with many sheets that have certain color tabs for certain worksheets. I have one page where the user can select a "To" and "From" color to change the colors of the tabs by changing the color of cells to match.

    It seems to work well going from color to color with the following code:
    Please Login or Register  to view this content.
    But, when going to or from a tab with no color (ie matching it to a cell with no color), it does not work well. I tried the following code, but it still is not working well.

    Please Login or Register  to view this content.
    It changes the tab color to basically white, rather the the no color of "gray". Any suggestions?

    Thanks,

    Mark
    Last edited by mgaworecki; 07-03-2014 at 02:15 PM.

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Change Color of Sheet Tabs by Matching Cell Colors

    hi Mark, try to reset sheet tab colour with (example):

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-13-2007
    Location
    Central New York
    MS-Off Ver
    Home: 2007, Office: 2010
    Posts
    158

    Re: Change Color of Sheet Tabs by Matching Cell Colors

    Thank watersev, that "False" seems to work better than xlColorIndexNone, etc. But, I also found other errors that I made.

    Here is the final code that seems to work well.

    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)

Similar Threads

  1. [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
  2. Matching Cell to change colors?
    By codyaaron2 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-17-2009, 08:12 AM
  3. Can't change the color formatting on sheet tabs
    By Jen in forum Excel General
    Replies: 1
    Last Post: 09-16-2005, 01:05 PM
  4. [SOLVED] Change sheet tabs to different colors
    By Mare in forum Excel General
    Replies: 2
    Last Post: 07-23-2005, 03:05 AM
  5. [SOLVED] How do I change the font color of my sheet tabs?
    By DungeonsOfAlcatraz in forum Excel General
    Replies: 1
    Last Post: 01-03-2005, 06: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