+ Reply to Thread
Results 1 to 4 of 4

How to hide sections with combo box

  1. #1
    Forum Contributor
    Join Date
    04-08-2009
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2003
    Posts
    228

    How to hide sections with combo box

    Please see attached .xls

    As simply as I can put it, I have a sheet with various sections.

    I would like to have a combobox which, when used, selects a section and then displays only that section, hiding the other.

    Using the attached for example, by default the sheet only shows the section 'List1' however the combobox has an option of selecting either 'list2' or 'list1'. Which ever is selected the other is hidden.

    Hope that makes sense.
    Attached Files Attached Files

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: How to hide sections with combo box

    Use Custom Views from the View menu.

    I've created two based on your sheet, added a Dynamic Named Range to populate the Combobox, a formula to get the selected view & a simple macro to open the selected view
    Attached Files Attached Files
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    04-08-2009
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2003
    Posts
    228

    Re: How to hide sections with combo box

    Thanks RoyUK

    I'm unable to download your .xls here, could you please paste the code for the macro here?

    I know how to go about the rest

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: How to hide sections with combo box

    on Sheet2
    Dynamic Named Range to link the Combobox to
    C1 is the linked cell
    C2 contains =Index(Views,C1)

    The macro assigned to the Combobox is

    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