+ Reply to Thread
Results 1 to 3 of 3

hide rows based on a critera

  1. #1
    Forum Contributor
    Join Date
    04-21-2010
    Location
    Budapest
    MS-Off Ver
    Excel 2010
    Posts
    155

    hide rows based on a critera

    According to the sample file there are many values in a range.
    I want to use 2 buttons one for HIDE specific rows from a range A1:G11 one for UNHIDE all rows in the sheets.
    The HIDE function could be based on the content of the column B just in range A1:G11.
    If cells in column B in the specified range have value 0 the rows have to be hide.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: hide rows based on a critera

    click view in menubar and click tollbars in the toolbar window choose form. the form window opnes
    choose two buttons and place it on the sheet1(data is in sheet1)

    You have not said the cells in B column are 0 or blank. I have made provision for both.
    assign to the two button the following macro respectively. change the text of the button.


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

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: hide rows based on a critera

    Why not just use Auto Filter ?
    (can't say I see the need for any VBA)

+ 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