+ Reply to Thread
Results 1 to 6 of 6

Unhide Sheets using "Case Is"

  1. #1
    Registered User
    Join Date
    03-29-2024
    Location
    Ottawa, Canada
    MS-Off Ver
    O365
    Posts
    2

    Unhide Sheets using "Case Is"

    Hello,

    I have an Excel book with various sheets. On the main page the user should be able to Unhide a sheet based on a select option. I don't have any Vba coding skills, is there a source where I can copy and paste the code?

    Thanks

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Unhide Sheets using "Case Is"

    Of course it is easy doable but help us to help You.
    Please attached small simple file. Describe exactly how You imagine it to work.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Valued Forum Contributor
    Join Date
    11-29-2022
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    430

    Re: Unhide Sheets using "Case Is"

    If your sheet names are in the range B3:B5 (change this as needed), when you double click the name of the sheet, it will unhide it, hide all other sheets, and then activate the sheet for you. To add this code, right click the sheet that will have the contents and choose View Code. Paste this in there:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-29-2024
    Location
    Ottawa, Canada
    MS-Off Ver
    O365
    Posts
    2

    Re: Unhide Sheets using "Case Is"

    Thanks thomglea for the reply.
    Unfortunately the code does not work for me. The code seems to be based on Cells, I am looking to unhide the sheet based on the name of: Sheet 1 User selects "Overview", Overview sheet unhides, remaining sheets remain hidden.

    Cheers

  5. #5
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: Unhide Sheets using "Case Is"

    Maybe read Post #2 again.
    Experience trumps academics every day of the week and twice on Sunday.

  6. #6
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: Unhide Sheets using "Case Is"

    "unhiding by entering" a name:
    Please Login or Register  to view this content.
    Paste this code into the standard module.
    Last edited by mjr veverka; 03-30-2024 at 07:23 PM.

+ 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. VBA CODE TO hide/unhide based on validation list "YES","NO"
    By SUDI in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2014, 06:03 PM
  2. "If statement" works, but not "select case". What am I doing wrong?
    By max3732 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-19-2014, 12:39 PM
  3. Replies: 2
    Last Post: 04-18-2014, 04:12 PM
  4. [SOLVED] Click "-" or "+" to hide and unhide rows
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-09-2013, 08:03 AM
  5. Replies: 1
    Last Post: 09-21-2013, 03:18 AM
  6. Replies: 2
    Last Post: 06-06-2013, 12:45 PM
  7. "The "sheets" method from the "_Global" object have failed."
    By mankit87 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-08-2011, 08:53 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