+ Reply to Thread
Results 1 to 3 of 3

Hide rows if cell in Column E is empty

Hybrid View

  1. #1
    Registered User
    Join Date
    06-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1

    Hide rows if cell in Column E is empty

    Hello,

    I need VBA code that will hide the entire row if a cell in column E is blank.

    Please help!!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,311

    Re: Hide rows if cell in Column E is empty

    Why don't you just use Autofilter?

    Record a macro while you go through the steps manually.

    That should get you most of the way there.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Hide rows if cell in Column E is empty

    Consider:

    Sub HideRows()
    Dim rHide As Range, r As Range
    Set rHide = Intersect(ActiveSheet.UsedRange, Range("E:E"))
    For Each r In rHide
        If r.Value = "" Then
            r.EntireRow.Hidden = True
        End If
    Next
    End Sub
    Gary's Student

+ 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