+ Reply to Thread
Results 1 to 5 of 5

hide and unhide worksheets

  1. #1
    Registered User
    Join Date
    12-03-2009
    Location
    LA, CA
    MS-Off Ver
    Excel 2003
    Posts
    3

    hide and unhide worksheets

    I have over 30 worksheets in one workbook. I would like the user to be able to hide and unhide worksheets based on a value in a certain cell in the "main" worksheet.

    For example if cell A1=CP, then all worksheets will be hidden except "sheet1". If A1 was changed to LQ then "sheet2" be visible and all others be hidden.

    Hopefully this makes sense.

    Any help will be appreciated.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: hide and unhide worksheets

    If Sheet1!A1 is "CP" then all sheets are hidden except for Sheet1.
    If Sheet1!A1 is "LQ" then all sheets are hidden except for Sheet2.

    At that point, how does the user change the (now hidden) Sheet1!A1 back to "CP"?
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    12-03-2009
    Location
    LA, CA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: hide and unhide worksheets

    if the user selects CP again the hidden sheets should be visible.

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: hide and unhide worksheets

    how can the user set Sheet1!A1 back to CP if the sheet is hidden???

  5. #5
    Valued Forum Contributor
    Join Date
    09-04-2007
    Location
    Ontario, Ca
    Posts
    624

    Re: hide and unhide worksheets

    He must be stating that the Main Sheet is always open and che codes are entered on that sheet.
    Thanks for helping . . .
    Matt @ Launchnet

+ 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