+ Reply to Thread
Results 1 to 6 of 6

Mass change conditional format conditions

  1. #1
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Mass change conditional format conditions

    So imagine you have a sheet with lots of different conditional formats in them. And some of those formats are based on a certain condition or are partly based on that condition.

    what I want to be able to do is loop through all the conditional formats in the sheet and find that string within the conditional format condition and replace it (as opposed to going into every conditional format one at a time or clearing and redesigning my conditional formats.

    So for a basic example -

    maybe my cells is red when A1+B1+C1>0 But now A1+B1 need to be D1
    i.e. in this case it creates D1+C1>0

    Conceptually this is what i am imagining (although you can tell me if I'm approaching this wrong)

    msgbox enter string1
    msgbox enter string2
    for each FormatCondition in sheet
    look at the condition and find string1
    replace string1 with string2 (or record failure as I imagine error checking might be a good idea)
    next condition
    confirm completed or if there was an error

  2. #2
    Forum Contributor frabulator's Avatar
    Join Date
    09-16-2015
    Location
    United States
    MS-Off Ver
    2019
    Posts
    101

    Re: Mass change conditional format conditions

    See if this is what you are looking for:

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Mass change conditional format conditions

    thanks,
    however I mean that the formula is IN the conditional formatting rules,
    and it is the rules that I want to edit not the formulas in the cells themselves.

    ie the data that appears under
    conditional formatting -> manage rules - > edit rule -> under "format values where this formula is true"

  4. #4
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Mass change conditional format conditions

    It can be assumed that the conditional formats will always be in the "if this formula is true" format, if that helps.

  5. #5
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Mass change conditional format conditions

    conditional formats minefield as it does become a convoluted mess after there are many people doing cut paste all over the place

    http://dailydoseofexcel.com/archives...at-conditions/
    here's a code that will tell you want conditional formats you do have on your sheet

    suppose the next part would once you know what your sheet has you can reverse engineer to what you want?
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  6. #6
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Mass change conditional format conditions

    I just found something that looks like it does the job
    although I modified it to use the special cells like your example (and I suppose I'll also loop through the format conditions rather than just doing 3)

    Please Login or Register  to view this content.
    http://blog.livedoor.jp/andrewe/arch...at_103343.html

+ 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: 3
    Last Post: 02-24-2015, 02:58 AM
  2. Mass Change Conditional Format rules
    By batchy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-27-2014, 06:03 AM
  3. [SOLVED] Conditional format for 2 conditions
    By dtrevor in forum Excel General
    Replies: 5
    Last Post: 11-21-2013, 03:38 AM
  4. [SOLVED] Conditional Format - 3 conditions
    By Mike Saffer in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-13-2006, 02:40 PM
  5. [SOLVED] more conditional format conditions
    By rnc in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-06-2005, 03:05 AM
  6. [SOLVED] more conditional format conditions
    By rnc in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-06-2005, 12:05 AM
  7. [SOLVED] more conditional format conditions
    By rnc in forum Excel Formulas & Functions
    Replies: 5
    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