+ Reply to Thread
Results 1 to 14 of 14

How to convert conditional formatting into true color using VBA?

  1. #1
    Forum Contributor
    Join Date
    04-28-2016
    Location
    Stavanger, Norway
    MS-Off Ver
    365
    Posts
    142

    How to convert conditional formatting into true color using VBA?

    Hi,

    If I have a table with different colors through conditional formatting, how can I convert the colored cells in this table from conditional color to true color using VBA?

    Thanks

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: How to convert conditional formatting into true color using VBA?

    How about
    Please Login or Register  to view this content.

  3. #3
    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,915

    Re: How to convert conditional formatting into true color using VBA?

    Here's one way - adjust the range in the testit routine as needed:

    Please Login or Register  to view this content.
    If your Office version is actually later than the 2007 in your profile, you could also use Fluff's method.
    Rory

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: How to convert conditional formatting into true color using VBA?

    If your Office version is actually later than the 2007 in your profile, you could also use Fluff's method.
    Oops, never thought of that

  5. #5
    Forum Contributor
    Join Date
    04-28-2016
    Location
    Stavanger, Norway
    MS-Off Ver
    365
    Posts
    142

    Re: How to convert conditional formatting into true color using VBA?

    Quote Originally Posted by Fluff13 View Post
    How about
    Please Login or Register  to view this content.
    This does not seem to work?

  6. #6
    Forum Contributor
    Join Date
    04-28-2016
    Location
    Stavanger, Norway
    MS-Off Ver
    365
    Posts
    142

    Re: How to convert conditional formatting into true color using VBA?

    Quote Originally Posted by rorya View Post
    Here's one way - adjust the range in the testit routine as needed:

    Please Login or Register  to view this content.
    If your Office version is actually later than the 2007 in your profile, you could also use Fluff's method.
    Okay thanks, I am using the latest version unfortunately

  7. #7
    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,915

    Re: How to convert conditional formatting into true color using VBA?

    Quote Originally Posted by mss90 View Post
    Okay thanks, I am using the latest version unfortunately
    Then I suggest you update your profile. If you are using a version later than 2007, then Fluff's code should work so you'll need to provide more information than just "doesn't seem to work". Although, what I posted should still work, unless you have 64bit Office.

  8. #8
    Forum Contributor
    Join Date
    04-28-2016
    Location
    Stavanger, Norway
    MS-Off Ver
    365
    Posts
    142

    Re: How to convert conditional formatting into true color using VBA?

    Quote Originally Posted by rorya View Post
    Then I suggest you update your profile. If you are using a version later than 2007, then Fluff's code should work so you'll need to provide more information than just "doesn't seem to work". Although, what I posted should still work, unless you have 64bit Office.
    I have updated my profile now, apologies for the inconvenience. I am not sure what to add as the code doesnt make the conditional formatting on the active worksheet into true colors. Nothing seems to change, it just loads for a bit.

  9. #9
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: How to convert conditional formatting into true color using VBA?

    Are you not perhaps wanting to remove conditional formatted color rule and replace with true color...
    i.e. remove the rule and replace...
    Last edited by sintek; 08-11-2020 at 07:20 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  10. #10
    Forum Contributor
    Join Date
    04-28-2016
    Location
    Stavanger, Norway
    MS-Off Ver
    365
    Posts
    142

    Re: How to convert conditional formatting into true color using VBA?

    Quote Originally Posted by sintek View Post
    Are you not perhaps wanting to remove conditional formatted color rule and replace with true color...
    i.e. remove the rule and replace...
    Yes, in other words I want to remove conditional formatting but to keep the colors

  11. #11
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: How to convert conditional formatting into true color using VBA?

    Add red snippet below Fluff13 code...
    Please Login or Register  to view this content.

  12. #12
    Forum Contributor
    Join Date
    04-28-2016
    Location
    Stavanger, Norway
    MS-Off Ver
    365
    Posts
    142

    Re: How to convert conditional formatting into true color using VBA?

    Quote Originally Posted by sintek View Post
    Add red snippet below Fluff13 code...
    Please Login or Register  to view this content.
    Thanks, that worked perfectly!

  13. #13
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: How to convert conditional formatting into true color using VBA?

    Glad I could contribute...Tx for unexpected rep +

  14. #14
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: How to convert conditional formatting into true color using VBA?

    Glad to help & thanks for the feedback.

+ 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 Formatting when I've 1 TRUE i need to color also 2 FALSE
    By XLalbania in forum Excel General
    Replies: 6
    Last Post: 11-03-2018, 01:23 PM
  2. [SOLVED] Conditional formatting color change if any in row is true
    By CLSSY56 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-08-2018, 11:59 AM
  3. [SOLVED] Conditional Formatting with AND() not working when TRUE
    By bbkdude in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 04-24-2017, 03:45 PM
  4. Conditional formatting with formula as TRUE
    By Marcin4111 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-18-2014, 05:25 AM
  5. Replies: 3
    Last Post: 05-30-2014, 10:24 AM
  6. [SOLVED] Conditional formatting to adapt font color to background color
    By jankee in forum Excel General
    Replies: 4
    Last Post: 08-23-2013, 09:38 AM

Tags for this Thread

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