+ Reply to Thread
Results 1 to 7 of 7

Show or Hide Sheet Help

  1. #1
    Registered User
    Join Date
    01-16-2017
    Location
    Cape Town, South Africa
    MS-Off Ver
    2016
    Posts
    51

    Show or Hide Sheet Help

    Hi All

    Is there any way to hide a sheet based on the values I input into a cell without using VBA (see attached example)? I have VERY limited skills and have only ever written a basic Macro...

    Thanks!

    Silverbullet
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,457

    Re: Show or Hide Sheet Help

    Short story: no. You would need VBA.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Show or Hide Sheet Help

    .
    Please Login or Register  to view this content.
    Paste in Sheet 1 l Module

  4. #4
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    485

    Re: Show or Hide Sheet Help

    @Logit:

    There are two issues with your code:

    1. It will not work if there is no selection change -- for example, if the user types "Hide" in cell C3 and presses Ctrl+Enter.

    2. When the user unhides Sheet2 and changes selection on Sheet1, Sheet2 hides again.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,457

    Re: Show or Hide Sheet Help

    Should be a Worksheet_Change Event handler.

  6. #6
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    485

    Re: Show or Hide Sheet Help

    Quote Originally Posted by TMS View Post
    Should be a Worksheet_Change Event handler.
    Yes -- and, probably, clearing/changing C3.

  7. #7
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Show or Hide Sheet Help

    .
    I believe this addresses your concerns :

    Please Login or Register  to view this content.
    If not please advise. Thanks

+ 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. Compare Two Sheet and Show/hide match
    By surajitbose in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-05-2014, 05:59 AM
  2. [SOLVED] Show hide sheet and then go to Solved by : Olly
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-31-2014, 12:01 AM
  3. [SOLVED] Show/Hide Sheet 2 based on checkbox located on Sheet 1
    By stolen_83 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-14-2013, 12:51 PM
  4. Show/Hide sheet with sheet name the value of a combo Box
    By jdk789 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-17-2013, 06:07 AM
  5. Conditional sheet hide / show macro
    By NJDevil in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-23-2012, 04:25 PM
  6. excel sheet show/hide
    By arnab0711 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-25-2010, 01:26 AM
  7. [SOLVED] Show & Hide Shape in a Sheet
    By Pete Csiszar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-14-2005, 10:07 PM

Tags for this Thread

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