+ Reply to Thread
Results 1 to 4 of 4

Hiding rows based on Cell Colour & Data Validation Value

  1. #1
    Forum Contributor
    Join Date
    02-24-2011
    Location
    Belfast, N. Ireland
    MS-Off Ver
    Excel 2010
    Posts
    103

    Question Hiding rows based on Cell Colour & Data Validation Value

    Hi all,

    I had a problem a while back with Active X controls disappearing when rows were hidden and not appearing in the right place once the row was unhidden. Kyle123 was able to steer me in the right direction to get rid of lots of macros and drop down boxes ad use Data Validation but as I am totally new to this I was hoping someone could help me.

    I want to be able to hide or unhide all grey rows under the corresponding green row subheading and also to hide all green rows under the corresponding pink row headings. At present, if you select "NO" for a pink row it hides not just the green rows but also some pink rows underneath it. This works on the worksheet_change event (again one I have not used before)

    Could anyone modify the code to stop this from happening? Ideally i want to be able to present the user with just the pink options and have them expand out all the rows required however if they mistakenly select "YES" for a pink row I do not want any rows hidden which shouldn't be if they then change it to "NO".

    My thanks in anticipation

    Mowgli

    Attachment 179518

  2. #2
    Forum Contributor
    Join Date
    02-24-2011
    Location
    Belfast, N. Ireland
    MS-Off Ver
    Excel 2010
    Posts
    103

    Re: Hiding rows based on Cell Colour & Data Validation Value

    Bump, looking for help still!

  3. #3
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Hiding rows based on Cell Colour & Data Validation Value

    Here's the link for the original thread: http://www.excelforum.com/excel-prog...ific-cell.html

    Ok, cracked it - I think
    Please Login or Register  to view this content.
    Last edited by Kyle123; 09-11-2012 at 07:43 AM.

  4. #4
    Forum Contributor
    Join Date
    02-24-2011
    Location
    Belfast, N. Ireland
    MS-Off Ver
    Excel 2010
    Posts
    103

    Re: Hiding rows based on Cell Colour & Data Validation Value

    Kyle,

    Thanks so much, you have stopped me pulling my hair out in frustration as this works perfectly and is so much tidier than the mess I posted in the original thread

    Can see why you have the title Guru

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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