+ Reply to Thread
Results 1 to 4 of 4

Protect Sheet Workaround for Allowing Hide/Unhide

  1. #1
    Registered User
    Join Date
    05-15-2019
    Location
    Annapolis, MD
    MS-Off Ver
    10
    Posts
    21

    Protect Sheet Workaround for Allowing Hide/Unhide

    I have the following macro code on a "selector" sheet where the user can select sheets to appear when the check box is checked. I also want to protect the structure of my workbook so that tabs cannot be renamed, etc. Protect workbook disables the unhide and the tabs no longer appear when the boxes are checked. Is there a way to protect the workbook and still allow the checkboxes to work as I planned? (protecting sheets does not protect the structure of the workbook).

    Please Login or Register  to view this content.
    Thank you,
    Sara

  2. #2
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,223

    Re: Protect Sheet Workaround for Allowing Hide/Unhide

    You must Unprotect and Protect workbook:
    Please Login or Register  to view this content.
    Artik

  3. #3
    Registered User
    Join Date
    05-15-2019
    Location
    Annapolis, MD
    MS-Off Ver
    10
    Posts
    21

    Re: Protect Sheet Workaround for Allowing Hide/Unhide

    Thank you very much for the helpful and speedy reply. So far this is working...just 56 more entries to change.

  4. #4
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,223

    Re: Protect Sheet Workaround for Allowing Hide/Unhide

    Since you have to tinker with it, I suggest you change it this way.
    1. One parameterized routine that will take care of hiding/unhiding the sheet:
    Please Login or Register  to view this content.
    2. The CheckBoxNN_Click routines would look like this:
    Please Login or Register  to view this content.
    But you've probably already finished. Finally, improving 56 procedures is not that much.

    Artik

+ 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. How to hide & unhide protect sheet when Protect Workbook is active
    By VisionSmart in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-19-2021, 06:50 AM
  2. Workaround for Workbook protection:Hide/Unhide Worksheets
    By Aeroica in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2017, 12:33 AM
  3. hide/unhide (not protect) VB code while edditing it
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-19-2016, 05:10 PM
  4. Replies: 2
    Last Post: 01-17-2013, 08:39 AM
  5. Protect the Hide/Unhide option
    By Bestycame in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2011, 01:48 PM
  6. Protect Sheet but Hide/Unhide Columns
    By N164PJ in forum Excel General
    Replies: 2
    Last Post: 12-17-2008, 07:51 PM
  7. Hide/Unhide in Code; Protect, Unlock, etc.
    By Sandy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-12-2005, 11:05 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