+ Reply to Thread
Results 1 to 3 of 3

Hide All Rows with 0 Each time a Data Validation is Changed

  1. #1
    Forum Contributor
    Join Date
    02-14-2011
    Location
    West Valley City, Utah
    MS-Off Ver
    Excel 2010
    Posts
    108

    Hide All Rows with 0 Each time a Data Validation is Changed

    Good afternoon all,

    I've got a document with a handful of data validations that hide/show X rows depending on what is chosen via the data validation, and I'm looking for some code that will hide all rows that have a value of 0 when the row is unhidden via value selected in data validation. Below is some code that works wonderfully for the purpose of hiding the 0s when data validation is selected; the only issue Im having with it is anytime I change ANY cell, it runs (and takes a few moments to complete, which is annoying). Ultimately what I'm looking for is an alternate to the below code that does what the below code does, but only when a data validation is the value that is changing.

    Please Login or Register  to view this content.
    Last edited by Sky188; 02-28-2013 at 03:34 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Hide All Rows with 0 Each time a Data Validation is Changed

    At the top, before you do anything else, check to see if the changed cell had validation in it.

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    02-14-2011
    Location
    West Valley City, Utah
    MS-Off Ver
    Excel 2010
    Posts
    108

    Re: Hide All Rows with 0 Each time a Data Validation is Changed

    Works flawlessly, thanks!

+ 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