+ Reply to Thread
Results 1 to 2 of 2

Automatically skip over conditionally formatted cells?

  1. #1
    Forum Contributor
    Join Date
    07-30-2014
    Location
    Mosman, Australia
    MS-Off Ver
    2013
    Posts
    118

    Automatically skip over conditionally formatted cells?

    Hi there,

    I have a spreadsheet where i enter a lot of volumes for various departments. Some departments have sections i don't need to fill in any volumes. I have set it up so that these particular cells are conditionally formatted to the RGB colour 0,0,0 (or black). This conditional format is by using a formula, so sometimes the cells change based on another cell.

    Is there a macro i can use so that if the cell has been conditionally formatted to black, the cell is skipped over automatically when i enter in the volumes?

    Please note that i don't manually format the cells to change black, i'm using the "conditional format using a formula" option in the formatting option, so sometimes the cells that were black will change to white so that i can enter data into that cell the following month.

    I hope this makes sense and someone can help.

    Thanks

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

    Re: Automatically skip over conditionally formatted cells?

    There is no attribute of a cell that can be queried in VBA to tell you whether conditional formatting is applied. If you check the fill color attribute, it will be the cell's default fill color, even if the conditional formatting rule has currently turned it black. The easiest way to do what you want is to code the same condition in your VBA that is used in the conditional formatting rule and see if the cell meets that condition.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Auto skip colored cells VBA but include conditionally formatted cells also
    By Cremorneguy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-31-2014, 03:44 AM
  2. [SOLVED] How to Sum cells that have been conditionally formatted
    By kbaz555 in forum Excel General
    Replies: 2
    Last Post: 08-25-2014, 12:24 PM
  3. [SOLVED] How To Count Conditionally Formatted Cells
    By ScotyB in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-16-2013, 07:51 PM
  4. Sum conditionally formatted cells
    By akabraha in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-04-2010, 02:22 PM
  5. [SOLVED] Report for Conditionally Formatted Cells
    By Sige in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2005, 08:26 AM

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