+ Reply to Thread
Results 1 to 5 of 5

Macro to automatically change tab color to red base on a cell date

  1. #1
    Registered User
    Join Date
    08-09-2012
    Location
    Indiana
    MS-Off Ver
    Excel 2007
    Posts
    2

    Macro to automatically change tab color to red base on a cell date

    Hello everyone, I need your assistance. I have a very large workbook with worksheets corresponding to every day of the month. In each worksheet cell S1 contains a formulated date that evolves from the first day on by adding +1, +2, +3, +30 and so on ....... (I also have other worksheets but they don't have date, they contain charts).

    I am wondering if it is possible to detect the date in cell S1 for each sheet, and if it is Sunday, then turn the tab color to red.

    Thank you in advance.

  2. #2
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Macro to automatically change tab color to red base on a cell date

    Sure:
    Please Login or Register  to view this content.
    Last edited by tlafferty; 08-10-2012 at 02:51 PM. Reason: Wrong cell ref
    If your question has been satisfactorily addressed, please consider marking it solved. Click the Thread Tools dropdown and select Mark thread as solved.
    Also, you might want to add to the user's reputation by clicking the star icon in the lower left corner of the post with the answer- it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

  3. #3
    Registered User
    Join Date
    08-09-2012
    Location
    Indiana
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Macro to automatically change tab color to red base on a cell date

    Great! It worked, Thank you.

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Macro to automatically change tab color to red base on a cell date

    Hi Chaunceycat,

    Try this:

    Please Login or Register  to view this content.


    ---------- Post added at 12:03 PM ---------- Previous post was at 12:02 PM ----------

    Hi Chaunceycat,

    Try this:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Macro to automatically change tab color to red base on a cell date

    @ Chaunceycat

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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