+ Reply to Thread
Results 1 to 4 of 4

Using Userform to Hide/Show specific Sheets in Work Book

  1. #1
    Registered User
    Join Date
    02-26-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    10

    Using Userform to Hide/Show specific Sheets in Work Book

    Hi,
    I am trying to use a userform to select and show sheets in a workbook where the default is for all sheets to be hidden.
    Basically when the user selects a sheet name from the combobox on the userform I need that sheet to bcome active and the previous sheet to becom hidden.
    I would also like 1 other sheet to be permanantley visible.

    I have come up with the code below which works to a certain degree, it allows me to do 90% of what I require however if the user were to select the active sheet name from the comboxbox when it is already open the macro locks up.

    Please Login or Register  to view this content.
    End Sub



    Any ideas how I can overcome this?

    Thanks

  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: Using Userform to Hide/Show specific Sheets in Work Book

    See this SheetsToHide.zip
    Last edited by royUK; 03-18-2011 at 05:40 AM.
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    02-26-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Using Userform to Hide/Show specific Sheets in Work Book

    Hi Roy.

    Thanks for looking at my post, I have tried clicking on your ling but it doesnt seem to work.

  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: Using Userform to Hide/Show specific Sheets in Work Book

    Sorry, I've corrected the link

+ 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