+ Reply to Thread
Results 1 to 9 of 9

Conditional Formatting - Stop if True - Turning On/Off

  1. #1
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Nottingham
    MS-Off Ver
    Office 2016
    Posts
    355

    Conditional Formatting - Stop if True - Turning On/Off

    I have the following code:

    Please Login or Register  to view this content.
    All of the CF rules have "Stop If True" applied. Is there any way to turn this off by default, and add SiT to individual rules?

  2. #2
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,980

    Re: Conditional Formatting - Stop if True - Turning On/Off

    You can specify it with the StopIfTrue property

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Nottingham
    MS-Off Ver
    Office 2016
    Posts
    355

    Re: Conditional Formatting - Stop if True - Turning On/Off

    What would be more efficient / better written?

    As you have suggested, or

    Please Login or Register  to view this content.
    and calling this in my Sub CF()?

  4. #4
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,980

    Re: Conditional Formatting - Stop if True - Turning On/Off

    I don't think that will work because StopIfTrue is a property of the Format Condition not the cell.

  5. #5
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Nottingham
    MS-Off Ver
    Office 2016
    Posts
    355

    Re: Conditional Formatting - Stop if True - Turning On/Off

    I have amended my code for my Macro

    Please Login or Register  to view this content.
    When I apply the Macro, CF is removed, all is added as per the code. In my data, J4 contains "Yes" but the CF for F4 is applied, even though F4 is .StopIfTrue = False and J4 is .StopIfTrue = True and the relevant tick-box is empty/ticked according to the macro
    Attached Files Attached Files

  6. #6
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Conditional Formatting - Stop if True - Turning On/Off

    Your formula is looking two rows down. You use J4 in the formula but applied from row 2, not row 4.
    Rory

  7. #7
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Nottingham
    MS-Off Ver
    Office 2016
    Posts
    355

    Re: Conditional Formatting - Stop if True - Turning On/Off

    Oh my lord

    Thank you. Both

  8. #8
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,980

    Re: Conditional Formatting - Stop if True - Turning On/Off

    Maybe you could separate out the creation part to make it less long and only change the parts you need to.

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Nottingham
    MS-Off Ver
    Office 2016
    Posts
    355

    Re: Conditional Formatting - Stop if True - Turning On/Off

    Thanks for the help, BM

+ 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. Conditional formatting "stop if true"
    By loki316 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-23-2019, 06:35 PM
  2. [SOLVED] Conditional Format - Stop if true not working
    By MarkPr in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-06-2017, 04:13 PM
  3. Stop if True does not work in conditional formatting
    By Faridwahidi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-17-2014, 12:07 PM
  4. Stop if the value is true + conditional formatting (mac-excel-2011)
    By futrola in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-21-2014, 02:28 PM
  5. [SOLVED] Macro to enable the Stop if true command in Conditional Fomatting
    By qaliq in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2013, 04:49 AM
  6. turning a cell's conditional formatting off than back on.
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-17-2010, 12:36 PM
  7. [SOLVED] How do I stop Excel from changing the word true to TRUE?
    By Schmyerlou in forum Excel General
    Replies: 1
    Last Post: 11-23-2005, 05:00 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