+ Reply to Thread
Results 1 to 10 of 10

Remove Conditional Formats but not the Effects

  1. #1
    Registered User
    Join Date
    03-16-2015
    Location
    Egypt
    MS-Off Ver
    2010
    Posts
    51

    Remove Conditional Formats but not the Effects

    Hi,
    I'm creatting a macro to Remove Conditional Formats and the Effects
    then change The color based on the Conditions to another standard color

    HTML Code: 
    it's working perfectly
    but now , I'm trying to Remove Conditional Formats but not the Effects
    I have tried several ways, but either I get errors or no errors, but always not working
    I wonder whether someone could help me
    Thanks in advance !
    Mokhtar

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,776

    Re: Remove Conditional Formats but not the Effects

    The strategy is to evaluate each condition against each cell, and then apply permanent formatting based on the rule. To make this general purpose to apply to all possible types of CF rules would be very complex, tantamount to reimplementing Excel's CF feature. If you have a very specific set of rules known in advance, it becomes easier.

    What can you tell us about how you are going to use this code, how the worksheet is set up, and what are the conditional formatting rules in use?
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    03-16-2015
    Location
    Egypt
    MS-Off Ver
    2010
    Posts
    51

    Re: Remove Conditional Formats but not the Effects

    Thanks for the reply mr.6StringJazzer

    the conditional formatting rules is : use a formula to deterimine which cells to formate
    format values where this formula is true : =cell_has_formula
    show formatting for : current Selection
    format cells : font style and fill background
    Thanks

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,776

    Re: Remove Conditional Formats but not the Effects

    =cell_has_formula


    There is no such function built in. How is this defined?

  5. #5
    Registered User
    Join Date
    03-16-2015
    Location
    Egypt
    MS-Off Ver
    2010
    Posts
    51

    Re: Remove Conditional Formats but not the Effects

    it's refers to

    =GET.CELL(48;INDIRECT("rc";FALSE))
    Last edited by mokht; 11-03-2015 at 03:47 PM.

  6. #6
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Remove Conditional Formats but not the Effects

    Not for nuthin', but "CTRL + ~"(tilde) will easily identify which cells contain formulas. Repeat to view as normal.

    Pete

  7. #7
    Registered User
    Join Date
    03-16-2015
    Location
    Egypt
    MS-Off Ver
    2010
    Posts
    51

    Re: Remove Conditional Formats but not the Effects

    cells contain formulas $A$1;$C$2;$A$3;$C$4;$A$5;$C$6;$A$7;$C$8;$A$9;$C$10

    this is my excel file
    Last edited by mokht; 11-03-2015 at 04:07 PM.

  8. #8
    Registered User
    Join Date
    03-16-2015
    Location
    Egypt
    MS-Off Ver
    2010
    Posts
    51

    Re: Remove Conditional Formats but not the Effects

    hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
    Any suggestions

    what about this solution :
    copy WorkRng , paste data into a new Word document Object , then copy it
    Switch back to Excel Worksheet , delete rule from WorkRng , paste new data
    is not agood idea ?

    Anyone interested in giving me a hand with this?
    Last edited by mokht; 11-04-2015 at 09:13 AM.

  9. #9
    Registered User
    Join Date
    03-16-2015
    Location
    Egypt
    MS-Off Ver
    2010
    Posts
    51

    Re: Remove Conditional Formats but not the Effects

    Hi
    this is my solution :
    HTML Code: 
    it's working perfectly but i have a one problem , formulas in rane A1:C10 changed to values
    Any help will be greatly appreciated.
    Hope it is clear now

  10. #10
    Registered User
    Join Date
    03-16-2015
    Location
    Egypt
    MS-Off Ver
    2010
    Posts
    51

    Re: Remove Conditional Formats but not the Effects

    solved
    here is first code
    HTML Code: 

    here is the second

    HTML Code: 
    Last edited by mokht; 11-05-2015 at 11:46 AM.

+ 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. [SOLVED] Conditional format based on other conditional formats?
    By TPDave in forum Excel General
    Replies: 4
    Last Post: 10-23-2014, 01:48 PM
  2. Replies: 4
    Last Post: 10-01-2014, 03:18 PM
  3. [SOLVED] PasteSpecial with number formats but without conditional formats or borders
    By bodhi808 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-18-2013, 09:58 AM
  4. Replies: 2
    Last Post: 05-01-2013, 01:52 PM
  5. Remove conditional formatting, keep formats.
    By elmaco12 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-28-2013, 10:58 AM
  6. How remove color formats from tabs, which I want?
    By chrustik in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-26-2010, 06:13 AM
  7. Remove custom formats
    By KausBorealis in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-27-2008, 12:55 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