+ Reply to Thread
Results 1 to 6 of 6

Criteria for color and columns

  1. #1
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Criteria for color and columns

    HI I have below code which color the rows after amount in column J.
    What I really need is this. There is 4 column with approvals. From column M to P.

    If the color is green I need a message box come up, if there is no date in Column M.

    If the color is ´Light blue, I need a message box come up, if there is missing date in any of column M and N


    If color is Pink, I need a message box come up, if there is not data in any of column M, N and O

    If color is orange I need a message box come up if no data in any of Column M, N, O and P.

    The message box could say "there is missing comment for items in green etc"

    In below code which I get great help to here.- It color all rows. So here is the correct color codes. And maybe this Macro can be build out.

    Or a separate macro is fine also.

    I have also attached a test sheet, where you can see the colors and here in a module the code below is.

    I would really like if I in the code can change easy the columns if it should change.


    Please have a look also at below test sheet,

    Thanks in advance

    Sincerely

    Abjac







    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Criteria for color and columns

    Looks like my code. Does this do what you need?

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Criteria for color and columns

    HI stnkynts. Yes it was your code. Thanks really allot for this one. I really save my day. I need check this in a big sheet and it works fantastic.
    Really great code.

    Really great help from you.

    Thanks allot

    Have a nice day

    Sincerely

    Abjac

  4. #4
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Criteria for color and columns

    Hi. I want to put a input box in to be able to put the start column for the comments. But it works but don't show the right result. Code is delivered before from upper stnkynts here and is great. But the input box I cant make it work correctly. The start column can be variant depend on the excel I get.


    Thanks

    Sincerely

    Abjac




    Please Login or Register  to view this content.
    Last edited by abjac; 05-27-2015 at 08:30 AM.

  5. #5
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Criteria for color and columns

    Try this:

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Criteria for color and columns

    HI stnkynts,. Again a very good code. I Just tested it and it works really perfect.
    Thanks allot great help again.

    have a nice day.

    Sincerely
    Abjac

+ 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: 1
    Last Post: 09-03-2013, 07:41 PM
  2. Listbox Row Color, Columns Alignment, Columns Borders
    By BrianAll in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2013, 10:53 AM
  3. Replies: 12
    Last Post: 09-18-2012, 03:13 PM
  4. Countifs_two text criteria met and one color criteria met
    By alinda in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-27-2011, 05:27 AM
  5. Countifs_two text criteria and one color criteria
    By alinda in forum Excel General
    Replies: 11
    Last Post: 09-27-2011, 05:24 AM

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