+ Reply to Thread
Results 1 to 7 of 7

Hide/Unhide Entire Row With Button IF

  1. #1
    Registered User
    Join Date
    02-02-2010
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    47

    Hide/Unhide Entire Row With Button IF

    Hello,

    Been looking all over for this but still need help. I could not find the answer in other posts.

    I'm trying to get a Button to hide and unhide rows depending on Column A only which is a pasted link to other sheets. The rows should hide when Cell A is empty or 0.

    or 2 buttons one for hiding and the other for unhiding rows

    Can someone help me out plz.

    Thx.
    Last edited by Bluewhistler; 02-19-2010 at 03:50 AM. Reason: Solved With Autofilter (thx JBeaucaire)

  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/Unhide Entire Row With Button IF

    Let's see your workbook...
    _________________
    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
    02-02-2010
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    47

    Re: Hide/Unhide Entire Row With Button IF

    I was able to put the button on the sheet but I cant edit it anymore?
    I managed to get the blank rows to hide with the code on the other thread
    Quote Originally Posted by excelxx View Post
    Hi

    I think the code below may help you in hiding rows with zero value in column B and un-hiding the rows where the value is no longer zero.

    Please Login or Register  to view this content.
    But It would be nice to be able to do this with a button.

    Can't seem to upload? I get a Database error? ok I did it file was to big deleted a few sheets.
    Can you get the button to hide blank rows on Sheet 11 "Overzicht"
    Attached Files Attached Files

  4. #4
    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/Unhide Entire Row With Button IF

    No macro or VBA is needed. You can use Excel's AutoFilter to do this. Use cell A3 to filter for "non-blanks" to get the look you want, or ShowAll to see it normally.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-02-2010
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    47

    Re: Hide/Unhide Entire Row With Button IF

    Quote Originally Posted by JBeaucaire View Post
    No macro or VBA is needed. You can use Excel's AutoFilter to do this. Use cell A3 to filter for "non-blanks" to get the look you want, or ShowAll to see it normally.
    This is good.
    Can I also make a custom filter so that I have only have 5 things to chose from instead of a whole list?

  6. #6
    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/Unhide Entire Row With Button IF

    What 5 things? I don't see any repeating codes in column A... some of the other columns have repeating values. Not sure how to advise you.

  7. #7
    Registered User
    Join Date
    02-02-2010
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    47

    Re: Hide/Unhide Entire Row With Button IF

    Thx JB.,

    The autofilter works just fine. Forget my previous post.
    thx for your time and sorry for the delay here.

    SOLVED.

+ 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