+ Reply to Thread
Results 1 to 6 of 6

Hiding/Unhiding Multiple Sheets

  1. #1
    Registered User
    Join Date
    07-10-2014
    Location
    India
    MS-Off Ver
    2013
    Posts
    33

    Hiding/Unhiding Multiple Sheets

    I have around 200 sheets in my excel workbook. Only two sheets are visible to user and rest are not visible.

    I don't want user to unhide sheets by right clicking and unhide them. If any user try to do this, it should ask for password.

    Please guide for this.

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

    Re: Hiding/Unhiding Multiple Sheets

    The following code will hide every sheet except Sheet1. xlSheetVeryHidden means that the user cannot unhide it using right-click. They can unhide it using VBA, if they know how, however, and I don't think there is a way to password protect it.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-10-2014
    Location
    India
    MS-Off Ver
    2013
    Posts
    33

    Re: Hiding/Unhiding Multiple Sheets

    Thanks mgs73 for code. Should I paste code in workbook

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

    Re: Hiding/Unhiding Multiple Sheets

    The code will run in a standard module. You don't really need it, as you can set this property in the Properties menu for each sheet - but if you have 200 sheets, it'll be much quicker to do it with the code!

  5. #5
    Registered User
    Join Date
    07-10-2014
    Location
    India
    MS-Off Ver
    2013
    Posts
    33

    Re: Hiding/Unhiding Multiple Sheets

    Hello,

    This code is not working.

  6. #6
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Hiding/Unhiding Multiple Sheets

    Perhaps like this?

    After hiding the sheets go to "Review" tab, click "Protect Workook" icon and set password.

    Alf

+ 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. Hiding/unhiding sheets
    By nkburm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-27-2010, 04:07 PM
  2. Hiding/unhiding sheets
    By nkburm in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-27-2010, 03:49 PM
  3. [SOLVED] Hiding and Unhiding Sheets
    By Rob in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-13-2006, 10:40 AM
  4. [SOLVED] Hiding and unhiding sheets
    By D.Hay in forum Excel General
    Replies: 2
    Last Post: 12-10-2005, 12:00 PM
  5. Hiding/Unhiding multiple sheets in VBA?
    By Simon Lloyd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-14-2005, 06:57 AM

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