+ Reply to Thread
Results 1 to 2 of 2

Hide all rows in a worksheet if a cell meets a condiition

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-06-2011
    Location
    cleveland
    MS-Off Ver
    Excel 2007
    Posts
    225

    Hide all rows in a worksheet if a cell meets a condiition

    i am putting together a table of sorts and i want to put a macro together that will allow the user to hide all the rows where the corresponding cell in column L is not blank. I have seen methods that use loops and some that say to use autofilters. what would be the best way to achieve this end result and could you give me a good starting point to do this please, if it would not be too much of a bother?

    thank you

  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 in a worksheet if a cell meets a condiition

    Autofilter it perfect.

    1) Highlight the row of titles
    2) Turn on the Data > Filter
    3) Use the drop down in that column to apply a custom filter of

    =*
    _________________
    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!)

+ 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