+ Reply to Thread
Results 1 to 7 of 7

Hide / unhide rows with help of a checkbox

  1. #1
    Registered User
    Join Date
    03-07-2009
    Location
    Oslo
    MS-Off Ver
    Excel 2007
    Posts
    4

    Hide / unhide rows with help of a checkbox

    Hello,

    I need your help, i'm just not good enough I need to hide / unhide some rows in a sheet with the help of a activex checkbox... I want remove, let's say row 20:24 and row 34 with one checkbox. Can somebody please help me out.

    Thanks a lot

    Cheers

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Hide / unhide rows with help of a checkbox

    Hello Hansa,

    Welcome to the Forum!

    Here is the code for the CheckBox. Just be sure to change the CheckBox name to match the name of your CheckBox.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    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 rows with help of a checkbox

    A little trick I learned from Mike Rickson, if the test you're doing is a TRUE/FALSE test, you can just match the test to the condition in a single row, like so:
    Please Login or Register  to view this content.
    Or even all the way down to:
    Please Login or Register  to view this content.
    _________________
    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!)

  4. #4
    Registered User
    Join Date
    03-07-2009
    Location
    Oslo
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Hide / unhide rows with help of a checkbox

    Hello,

    thank you both for the warm welcome and help, now everything is working like a dream


  5. #5
    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 rows with help of a checkbox

    If that takes care of your need, be sure to EDIT your original post (Go Advanced) and mark the PREFIX box [SOLVED]

  6. #6
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983

    Re: Hide / unhide rows with help of a checkbox

    Just to clarify JBeaucaire last reply

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  7. #7
    Registered User
    Join Date
    03-07-2009
    Location
    Oslo
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Hide / unhide rows with help of a checkbox

    Hello,

    I have not been logged in for a while, and therfore I have not marked my thread as solved.... sorry. Could somebody be so kind and mark it as solved for me.

    Thank you

+ 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