+ Reply to Thread
Results 1 to 3 of 3

Hide Rows in Range based on criteria

  1. #1
    Registered User
    Join Date
    07-27-2009
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2003
    Posts
    13

    Hide Rows in Range based on criteria

    I need a macro that will hide rows that are either blank or have the number 0 in them. I need it to be passed a range as a parameter and only hide rows that match those two criterion inside that range.
    something like
    Please Login or Register  to view this content.
    I know it is not too difficult, but I have not been able to accomplish it. I have found other similar examples but generally get caught by using a Range as a parameter or getting it to consider both blank cells and "0" cells as criteria. I would sincerely appreciate any help.

    Thanks!

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Hide Rows in Range based on criteria

    Adjust range as needed.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-27-2009
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Hide Rows in Range based on criteria

    Thanks Palmetto for your reply.

    Your code is great for hiding rows. However I am also trying to restrict the range this macro executes in. I tried changing your macro to the following, but it still hid all rows in the entire sheet, instead of just rows inside the range.

    Please Login or Register  to view this content.

+ 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