+ Reply to Thread
Results 1 to 2 of 2

Hide rows based on conditional formatting cell backcolor?

  1. #1
    Registered User
    Join Date
    04-01-2015
    Location
    Cape Town
    MS-Off Ver
    2010 Excel
    Posts
    1

    Hide rows based on conditional formatting cell backcolor?

    Hi

    In my worksheet I have a column where user enters percentages. It represents the percentage the user spends on a various tasks. I have applied conditional formatting to this column so that all the cells in the column turns to red if a value has been entered in any of the cells in the column, but the total of the percentages is not 100%. The normal backcolor of the cells is a light blue. A further conditional format is that the backcolor of unused cells in that column must turn grey as soon as the total percentage entered is 100%.
    This works fine. A further requirement now is to have a form button to hide all the rows which contain cells which have the grey color as done by the conditional formatting. I am trying the following code:

    Please Login or Register  to view this content.
    The problem is that it does not seem to work for backcolor that was set by conditional formatting. When I manually change the backcolor of a cell to the grey color then the row gets hidden when I run the macro.

    Can anyone give me some advice?

    Kind regards.
    KB

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Hide rows based on conditional formatting cell backcolor?

    For you info CF formatting is not the actual cell formatting.

    CF formatting is just for Visibility and it wont change the cells formatting.

    If you remove the CF then you will get actual formatting of the Cell (Set Manually).

    So instead of trying to use CF formatting use the CF Logic which you used to format the cells in your code to do the desired task


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

+ 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 Shading Rows Based On A Single Cell
    By Kanook22 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-17-2012, 12:09 PM
  2. Replies: 0
    Last Post: 06-11-2012, 02:36 PM
  3. Hide rows and conditional formatting
    By olga6542 in forum Excel General
    Replies: 8
    Last Post: 05-02-2011, 06:29 PM
  4. Replies: 7
    Last Post: 07-07-2009, 08:32 AM
  5. Conditional Formatting 4+ conditions, format rows based on cell
    By nockam in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-12-2006, 06:12 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