+ Reply to Thread
Results 1 to 3 of 3

protect all worksheets except ...

  1. #1
    Forum Contributor
    Join Date
    11-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    200

    protect all worksheets except ...

    Here is my macro I use to unprotect and protect all worksheets at the beginning and end of a single macro. How can I change it to unprotect/protect all but "sheet1"? Thank you.

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: protect all worksheets except ...

    Depending on whether sheet1 needs to be always portected or unprotected, you could just add a line on either of the above pieces of code to lock/unlock the sheet again?

    i.e.

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: protect all worksheets except ...

    This toggles the protection for all sheets except Sheet1:

    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

+ 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. [SOLVED] How can I protect worksheets in one go?
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 07:05 PM
  2. [SOLVED] How can I protect worksheets in one go?
    By Lincie L. in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  3. [SOLVED] How can I protect worksheets in one go?
    By Lincie L. in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  4. How can I protect worksheets in one go?
    By Lincie L. in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  5. [SOLVED] How can I protect worksheets in one go?
    By Lincie L. in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM

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