+ Reply to Thread
Results 1 to 2 of 2

Force all sheets to be protected in a workbook

  1. #1
    Forum Contributor
    Join Date
    11-03-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    246

    Force all sheets to be protected in a workbook

    Hi, I use this code on sheet1 activated by a shape to protect all sheets in the workbook, but sometimes I might unprotect sheet6 I am working on and most of the time forget to protect it when I have finished. When I activate the code it will just toggle the protection on or off, i.e all sheets will unlock but sheet6 would then be locked and vise versa, when I activate the code to the locked state I need it to force all sheet to be protected if possible please. Thanks

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Force all sheets to be protected in a workbook

    Hi A440,

    Try:
    Please Login or Register  to view this content.
    Lewis

+ 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] Force paste all formats (all sheets in workbook)
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-29-2014, 10:03 AM
  2. How can i unprotect a workbook and sheets that already protected?
    By Goodstart14 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-11-2014, 08:33 AM
  3. Hide/unhidden rows in protected workbook multiple sheets
    By wachinnai in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-08-2012, 02:26 PM
  4. Code to delete sheets and rename sheets in a protected workbook?
    By leaning in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-07-2011, 03:02 AM
  5. Automatically Delete Unused Sheets in Protected Wkbk with Protected Sheets?
    By leaning in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-06-2010, 08:49 PM
  6. code to update very hidden sheets in a protected workbook
    By Balachan56 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-22-2009, 05:31 PM
  7. [SOLVED] Macro for filter on protected workbook that works for all sheets, no matter what sheets are named?
    By StargateFanFromWork in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-26-2006, 02:35 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