+ Reply to Thread
Results 1 to 5 of 5

Return Conditional Format Color

  1. #1
    Registered User
    Join Date
    04-07-2011
    Location
    Key West, Florida
    MS-Off Ver
    Excel 2010
    Posts
    10

    Return Conditional Format Color

    Hello all,

    I am using conditional formatting to display a color gradient across a range of cells, and want to use some VBA code to return the color of each cell in hex format. I tried applying the method shown on this site: Conditional Formatting Colors , but the functions return invalid. After some investigation, it seems VBA does not recognize the FormatCondition object, and thus, cannot retrieve its formula. Is this a 2010 bug? Does anyone know some other way to return the color from conditional formatting?

    Thanks!

  2. #2
    Registered User
    Join Date
    04-07-2011
    Location
    Key West, Florida
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Return Conditional Format Color

    Does anyone have an idea? Should I just let it go?

  3. #3
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Return Conditional Format Color

    See http://www.cpearson.com/excel/CFColors.htm

  4. #4
    Registered User
    Join Date
    04-07-2011
    Location
    Key West, Florida
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Return Conditional Format Color

    That's the exact link I posted above...

  5. #5
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Return Conditional Format Color

    You will have to post a simple example for us to test as we can't guess why it fails for you.
    Last edited by Kenneth Hobson; 09-20-2011 at 08:43 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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