+ Reply to Thread
Results 1 to 4 of 4

Macro Not Reading Conditional Formatting

  1. #1
    Registered User
    Join Date
    12-11-2012
    Location
    Mechanicsburg, PA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Macro Not Reading Conditional Formatting

    Hello All,

    I have a spreadsheet with a macro to extract certain data. This document has various columns of dates that are conditionally formatted to turn red/yellow depending on how near the date is. The macro is intended to scan the sheet, and when it finds one of these red/yellow cells, extract certain information from the document.

    It works overall....

    If a cell is manually filled in using the toolbar, it works perfectly. But, if the cell is colored because of the conditional formatting (using the same colors), it does not.

    Any Ideas? Any help would be greatly appreciated.
    Last edited by jtilley; 03-18-2013 at 09:41 PM.

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Macro Not Reading Conditional Formatting

    you cannot use the Interior property of the range to read conditional formatting. fortunately you are using excel 2010 and have access to the new Displayformat object. use
    Please Login or Register  to view this content.
    instead of
    Please Login or Register  to view this content.
    in your code
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    12-11-2012
    Location
    Mechanicsburg, PA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Macro Not Reading Conditional Formatting

    JosephP,

    Sorry for the late reply when you were so quick to respond. I just made it home and got to try your suggestion on my test file....

    It works perfectly. Thank you so much. This was the final missing piece from a sheet that has been along time in the making.

    Thank you for the kindness you show by spending your time assisting others get through their problems.....

    Best wishes to you...

  4. #4
    Registered User
    Join Date
    12-11-2012
    Location
    Mechanicsburg, PA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Macro Not Reading Conditional Formatting

    Duplicate response... won't let me delete it


    JosephP,

    Sorry for the late reply when you were so quick to respond. I just made it home and got to try your suggestion on my test file....

    It works perfectly. Thank you so much. This was the final missing piece from a sheet that has been along time in the making.

    Thank you for the kindness you show by spending your time assisting others get through their problems.....

    Best wishes to you...

+ 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