+ Reply to Thread
Results 1 to 10 of 10

Create Macro to execute multiple Conditional Formatting Formulas

  1. #1
    Registered User
    Join Date
    09-29-2014
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    45

    Create Macro to execute multiple Conditional Formatting Formulas

    Trying to create a macro that hightlights and/or fills a row based on certain criteria
    i.e. If the date (in column I) is older than today, change the font to red
    If the date (in column I) is with the next 10 days, change the font to purple
    If Column G has "3" or "1" OR there's a "0" in Column J, then highlight the background mint green.

    However, it is no working properly. It's like the VBA thinks there's a conditional applied to a cell to it'll over look some of the rows. Other rows, like the header has conditions apply when it meets none of the criteria. I honestly can't explain what it's doing. Here's a sample.

    HelpMe2.xlsm

    Here's the code

    Please Login or Register  to view this content.
    Last edited by lashellr; 10-09-2014 at 04:47 PM.

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

    Re: Create Macro to execute multiple Conditional Formatting Formulas

    a few questions

    there are no Dates in column "M"....which column (D or I) did you mean.

    you aren't choosing a RANGE at the beginning of the macro...did you mean to?

    I added a clearing of the CF at the beginning of the macro and a RANGE at the begininng of the macro....not sure I'm helping...

    Please Login or Register  to view this content.
    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
    09-29-2014
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    45

    Re: Create Macro to execute multiple Conditional Formatting Formulas

    Sooo, sorry. I meant column 'I' and I guess my range would be the whole spreadsheet Column A to M. Maybe that's why my macro isn't formatting properly? I'm not sure. Yet, i really apprecaite any help that comes my way.
    Last edited by lashellr; 10-09-2014 at 04:43 PM.

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

    Re: Create Macro to execute multiple Conditional Formatting Formulas

    Hey, type perfect and never make mistakes......yeah.....right.....thanks...I take it the updates I did, didn't help?

  5. #5
    Registered User
    Join Date
    09-29-2014
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    45

    Re: Create Macro to execute multiple Conditional Formatting Formulas

    Not really, but it was closer than I was.

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

    Re: Create Macro to execute multiple Conditional Formatting Formulas

    how about this... it suffered from what we used to call an "Off by one error"....I actually start on row 1 even though your "data" starts on row 2....I think this works....

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    09-29-2014
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    45

    Re: Create Macro to execute multiple Conditional Formatting Formulas

    TYTYTYTY!!!! It finally works. You are awesome sauce.

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

    Re: Create Macro to execute multiple Conditional Formatting Formulas

    I'm glad I could help....

    If this has been completed to your satisfaction, please set the thread to Solved...If you feel I deserve an increase in my reputation, feel free to click on the star in the lower left of the thread. Remember, someday when you help somebody they may add to your rep points, and it could be me...just a thought...

  9. #9
    Registered User
    Join Date
    09-29-2014
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    45

    Re: Create Macro to execute multiple Conditional Formatting Formulas

    Solved and rep'd!

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

    Re: Create Macro to execute multiple Conditional Formatting Formulas

    thanks.....my Mom and the moderators will be happy....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. Create multiple Conditional Formatting rules with a formula
    By Loz44 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-03-2014, 01:39 AM
  2. [SOLVED] Multiple Formulas in Conditional Formatting
    By Bigadz in forum Excel General
    Replies: 2
    Last Post: 04-17-2012, 03:52 AM
  3. Conditional Formatting Formulas for Multiple Dates
    By smart_as in forum Excel General
    Replies: 4
    Last Post: 03-02-2011, 06:03 PM
  4. Replies: 12
    Last Post: 08-21-2009, 11:23 AM
  5. Replies: 3
    Last Post: 02-01-2005, 11:06 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