+ Reply to Thread
Results 1 to 15 of 15

Color Change with New Month

  1. #1
    Forum Contributor
    Join Date
    07-25-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    178

    Color Change with New Month

    Dear Excel Fox
    I always appreciate your helping nature, Need a help again.
    I have a sheet where i enter monthly fee, i want when next month arrive color of Month automatically change (which i change to gray in example attached sheet).

    It would help us to sort out pending fees.

    Regards
    Waqar
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,485

    Re: Color Change with New Month

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-25-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: Color Change with New Month

    thanks Alot davesexcel
    I tried this many times but it not worked, may be i am doing something wrong , can u please further elaborate.

    Regards

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,485

    Re: Color Change with New Month

    Sure, run the code, when it finds the word "Month" it will color the column.

  5. #5
    Forum Contributor
    Join Date
    07-25-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: Color Change with New Month

    Dear Davesexcel
    Thanks alot I upload file again just need Amount Colomn in red color when next Month Change.

    REgards
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    07-25-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: Color Change with New Month

    Dear davesexcel
    Plz help.

  7. #7
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,485

    Re: Color Change with New Month

    Find the last column with the word amount,

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    07-25-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: Color Change with New Month

    Thanks alot
    I apply this code but it didnt change the color of amount colomn, although i change the date of system, if u please upload the sheet.
    Regards

  9. #9
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,485

    Re: Color Change with New Month

    The code will find the last column that has "Amount" in it, and color it,

  10. #10
    Forum Contributor
    Join Date
    07-25-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: Color Change with New Month

    Sir please upload the sheet i will be thankfull to you, so that i can see where it color. please

  11. #11
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,485

    Re: Color Change with New Month

    I would just be uploading the same workbook as you did.
    Just run the code from the same workbook as you provided.

    You will notice there are two lines that I have commented out, they unprotect the sheet and then protect it again, you have to uncomment the lines in order for it to work.

  12. #12
    Forum Contributor
    Join Date
    07-25-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: Color Change with New Month

    Sir i have Upload sheet with code ... plz check and indicate where it works and how ?
    Regards
    Attached Files Attached Files

  13. #13
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,485

    Re: Color Change with New Month

    You can use a worksheet change event.

    Please Login or Register  to view this content.

  14. #14
    Forum Contributor
    Join Date
    07-25-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: Color Change with New Month

    Not working Properly......

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,426

    Re: Color Change with New Month

    "Not working properly" is not at all helpful to those trying to assist you. Please give specific detail: in what way is it not working? What isn't it doing? Are you getting error messages?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Color Change with New Month
    By waqarqrl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2017, 05:39 PM
  2. Condition Formatting: Change color when month change (oct = red, Nov = blue)
    By Flyinace2000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-28-2012, 12:20 PM
  3. Change color of current month only
    By Kutar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-09-2010, 01:13 PM
  4. [SOLVED] Change Cell Color if in current Month
    By Leslie in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  5. [SOLVED] Change Cell Color if in current Month
    By Ron de Bruin in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 07:05 AM
  6. Change Cell Color if in current Month
    By Ron de Bruin in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 06:05 AM
  7. [SOLVED] Change Cell Color if in current Month
    By Leslie in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 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