+ Reply to Thread
Results 1 to 8 of 8

Color by Month Date

  1. #1
    Registered User
    Join Date
    08-11-2014
    Location
    London,England
    MS-Off Ver
    2013
    Posts
    6

    Question Color by Month Date

    How can i achive to color each month on a column that has dates on it, for example all june dates have to be blue and February dates in green i have this code but only works referring with current date.

    this is the code im using right now
    Please Login or Register  to view this content.
    the problem is it only works if you are in the first of every month that have 30 days also. how can i archive this but for every month.

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Color by Month Date

    I would look up how to use a SELECT/CASE instead of IF/THEN/ELSEIF and then lookup how to use either MONTH or MONTHNAME functions. If you need more help just let us know....
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Registered User
    Join Date
    08-11-2014
    Location
    London,England
    MS-Off Ver
    2013
    Posts
    6

    Re: Color by Month Date

    Another alternative solution that i just thought out is, read the cell and return the month and paste it at the end of the lane, read about DateName but don't know how to use it like so.
    Any help is useful since im a newbie in vba and excel

  4. #4
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Color by Month Date

    one question I have is do you want to make June all one color or Today + 30?

    June = Blue OR Today() - 60 = Blue.....which one?

  5. #5
    Registered User
    Join Date
    08-11-2014
    Location
    London,England
    MS-Off Ver
    2013
    Posts
    6

    Re: Color by Month Date

    June = Blue
    Feb= Green
    ....
    ....
    I want to make each month in different color, what im trying in my code is to read the name of month and make some sort of conditional statement to color each different month that is on the column, still no luck

  6. #6
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Color by Month Date

    this might work for you

    change the VBColor to whatever you want for each month

    Please Login or Register  to view this content.
    Last edited by judgeh59; 09-22-2014 at 03:06 PM. Reason: UPdate

  7. #7
    Registered User
    Join Date
    08-11-2014
    Location
    London,England
    MS-Off Ver
    2013
    Posts
    6

    Re: Color by Month Date

    I see what you did there, very nice worked like I wanted to thank you this will help me on my daily reports.

  8. #8
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Color by Month Date

    glad I could help and thanks for the rep points....If this has been completed to your satisfaction, please set the thread to Solved...have a great day...

+ 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. Sort month/date/year data using month and date only
    By SMW820 in forum Excel General
    Replies: 8
    Last Post: 11-18-2014, 08:39 AM
  2. [SOLVED] Date function- 1st day of month for 2nd full month from start date
    By vidiotdave in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-25-2014, 05:33 AM
  3. Replies: 1
    Last Post: 04-22-2014, 05:32 PM
  4. Array function for date(month), Range Date(month)
    By dluhut in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-19-2013, 05:14 PM
  5. [SOLVED] Date arithmetic: adding 1 month to prior end of month date
    By manxman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-14-2006, 04:35 PM

Tags for this Thread

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