+ Reply to Thread
Results 1 to 5 of 5

Hide all the Worksheets except the one selected in Combobox

  1. #1
    Registered User
    Join Date
    08-30-2012
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    38

    Question Hide all the Worksheets except the one selected in Combobox

    Hi Experts,

    I've a excel workbook with 12 sheets naming as (January, February, March.. till December). I've a User form in another workbook, which has one Combobox with the Sheets names as the values.

    My question here is, Can i hide all the available sheets except the one which was selected in the combobox.

    Any help is really appreciated !!

  2. #2
    Registered User
    Join Date
    05-13-2014
    Location
    Best
    MS-Off Ver
    Excel 2007
    Posts
    60

    Re: Hide all the Worksheets except the one selected in Combobox

    Use :
    Sub hide(nameOfWorkSheet as string)
    Worksheets(nameOfWorkSheet).Visible = False
    End Sub

    you must add the code that reads the unselected content of the BOX. Pass the name to this proc.

    OK

    bart

  3. #3
    Registered User
    Join Date
    08-30-2012
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Hide all the Worksheets except the one selected in Combobox

    Hi Bart,

    I am sorry i could not get what exactly you are trying to say. Please check my question. I've asked to hide all the visibile sheets in a workbook, except the one which was selected in the combobox. where in the combobox has the values as the sheet names of the workbook.

    Thanks for your time and code.

    Could someone please help me out on this, Any help is really appreciated.

  4. #4
    Valued Forum Contributor
    Join Date
    11-26-2012
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    423

    Re: Hide all the Worksheets except the one selected in Combobox

    Try adding something like this to your code:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-13-2009
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Hide all the Worksheets except the one selected in Combobox

    try this......
    Attached Files Attached Files

+ 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. Selected row based on combobox selection
    By SlappyDikkinz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-31-2014, 11:26 AM
  2. Hide or Unhide Multiple Worksheets in a selected workbook
    By nchavan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-22-2013, 10:11 AM
  3. Can I auto hide/unhide worksheets based on selected cell criteria.
    By cwashburn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-17-2013, 04:06 PM
  4. [SOLVED] Hide rows and columns based on a combobox value
    By yasirmusa in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-23-2012, 04:52 PM
  5. Hide Combobox based on Cell Value
    By savio21 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-07-2011, 06:28 PM

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