+ Reply to Thread
Results 1 to 7 of 7

Long range calendar with changing color based on user selection

  1. #1
    Registered User
    Join Date
    04-20-2011
    Location
    San Antonio, TX
    MS-Off Ver
    Excel 2010
    Posts
    31

    Long range calendar with changing color based on user selection

    I would like help with creating a long range calendar where columns E:NF change color based on the "section" selected by the user. Each section should be its own color. The conditional formatting currently is only gray based on the date range. I would like it to still function the same but just be a different color for each section. I am trying to avoid using the conditional format function because there are many more "sections" than in my example and the names change making maintenance of the conditional format formulas a nightmare. Thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Long range calendar with changing color based on user selection

    Copy and paste this macro into the "2014" worksheet code module. Do the following: right click the tab for your sheet and click 'View Code'. Paste the macro into the empty code window that opens up. Close the code window to return to your sheet. Change either the start date or end date and exit the cell.
    Please Login or Register  to view this content.
    Last edited by Mumps1; 12-27-2013 at 12:36 PM.

  3. #3
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Long range calendar with changing color based on user selection

    My apologies. After I re-read you post, I realized you wanted the color change to take place when the section in column A was changed. Please use this macro to do that.
    Please Login or Register  to view this content.
    The previous macro does the color change when either the start or end date is changed. Well now you have two options for doing the same thing.

  4. #4
    Registered User
    Join Date
    04-20-2011
    Location
    San Antonio, TX
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: Long range calendar with changing color based on user selection

    Thank you Mumps1 for your response. Sorry, I cannot get the code to work. All it seems to do is remove the background color from the rows and add a light gray border. It is not changing the fill color to the corresponding color on the "Color Codes" tab based on the section chosen in column A. Please help!!

  5. #5
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Long range calendar with changing color based on user selection

    Try the attached file. It is working for me.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-20-2011
    Location
    San Antonio, TX
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: Long range calendar with changing color based on user selection

    I don't understand, it doesn't work for me either. The macros are enabled but the cells are not being filled by color.

  7. #7
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Long range calendar with changing color based on user selection

    I don't know what to tell you. The file I attached works perfectly for me. It changes the color according to the Color Codes sheet. Maybe you could start a new thread on the forum, attach the file and explain the problem. I'm at a loss right now.

+ 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: 2
    Last Post: 07-01-2013, 10:51 AM
  2. Excel fiscal year calendar color formatting based on user input from dates.
    By mdjco in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-12-2012, 03:30 PM
  3. changing ComboBox Background color based on selection
    By dagindi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-30-2011, 11:42 AM
  4. changing range selection for pivot table based on worksheet
    By twhitezell in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-07-2010, 11:49 AM
  5. Replies: 0
    Last Post: 07-17-2007, 03:23 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