+ Reply to Thread
Results 1 to 7 of 7

Hide/unhide rows with checkboxes

  1. #1
    Registered User
    Join Date
    02-28-2014
    Location
    Europe
    MS-Off Ver
    Excel 2011
    Posts
    8

    Hide/unhide rows with checkboxes

    Hello

    I could need some help to write a code that can hide/unhide rows with checkboxes.

    I would like the sheet to have row 7:247 to be hidden at startup. Then I have checkboxes that will unhide 20 rows a time.
    So when the first checkbox is checked, row 7:26 should show, and of course become hidden again if it's unchecked. The next checkbox should unhide/hide row 27:46, and so on.

    Could someone please help me?
    Thanks!

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Hide/unhide rows with checkboxes

    so like this how many checkboxes u want on userform to do your stuff ?
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  3. #3
    Registered User
    Join Date
    02-28-2014
    Location
    Europe
    MS-Off Ver
    Excel 2011
    Posts
    8

    Re: Hide/unhide rows with checkboxes

    I would like there to be a total of 12 checkboxes. So if all the boxes are checked, all the 240 rows that initially are hidden, are showing.

  4. #4
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Hide/unhide rows with checkboxes

    refer the attached file
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-28-2014
    Location
    Europe
    MS-Off Ver
    Excel 2011
    Posts
    8

    Re: Hide/unhide rows with checkboxes

    Amazing, this is just what I need. Thank you Naveed Raza.
    Just one thing, is it possible to get the opposite reaction? Now the rows are hidden when boxes are checked. I would love to have the rows unhidden when checked.
    Last edited by mixer; 04-05-2014 at 03:30 PM.

  6. #6
    Registered User
    Join Date
    02-28-2014
    Location
    Europe
    MS-Off Ver
    Excel 2011
    Posts
    8

    Re: Hide/unhide rows with checkboxes

    I managed to fix it. Thanks again Naveed Raza!!

  7. #7
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Hide/unhide rows with checkboxes

    Glad i could help you out

    please make the below things

    1. If the suggestion helps you, then Click * to Add Reputation
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] First unhide all rows - then hide rows based on specific cell value for a range of cells
    By robbiekh in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-22-2013, 05:46 PM
  2. need macro to hide/unhide columns through multiple checkboxes
    By trier in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-31-2013, 04:00 PM
  3. Using multiple checkboxes as an index page to hide/unhide worksheets
    By Damien_Lee in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2013, 07:24 AM
  4. Using checkboxes on summary sheet to name tabs and hide/unhide tabs
    By eew2201 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2012, 06:13 PM
  5. Hide/Unhide Multiple Checkboxes
    By LampCommandr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-30-2011, 09:35 AM

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