+ Reply to Thread
Results 1 to 5 of 5

Hide row if cell is empty

  1. #1
    Registered User
    Join Date
    07-09-2010
    Location
    Washington, DC
    MS-Off Ver
    Excel 2007
    Posts
    5

    Hide row if cell is empty

    I am trying to write a program that hides the row in a table if the cell in column B is empty. The table goes from B11:B74.

    I've tried some different programs I have found on other websites but none have worked so far. Any help would be greatly appreciated.

  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 row if cell is empty

    Lookup the TABLE features in Excel 2007 (like the AutoFilter in 2003). Once that is turned on for your data table, you can simply filter column B for non-blanks to hide all the blank rows.

    No VBA needed.
    _________________
    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
    Registered User
    Join Date
    06-11-2010
    Location
    grinnell, iowa
    MS-Off Ver
    Excel 2007
    Posts
    79

    Re: Hide row if cell is empty

    Try this:
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    07-09-2010
    Location
    Washington, DC
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Hide row if cell is empty

    I changed it so that it made the decision based on the value of the cell in column A. This is what I came up with:


    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Hide row if cell is empty

    [QUOTE=jturman;2341825]
    Simplify UnHideRows
    Please Login or Register  to view this content.
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

+ 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