+ Reply to Thread
Results 1 to 3 of 3

Check if sheet in array is unprotected

  1. #1
    Forum Contributor
    Join Date
    07-13-2017
    Location
    Hong Kong
    MS-Off Ver
    MS Office 365
    Posts
    481

    Check if sheet in array is unprotected

    Hi all,

    How can I re-write below code:

    Please Login or Register  to view this content.
    to apply it to an array of sheets? I have following array:

    Please Login or Register  to view this content.
    and code (see below) to protect them. Though, I don't want to re-protect them if they are already protected. So the code needs to somehow check which sheets in the array are currently unprotected and only (!) protect those. How can I achieve that?

    Please Login or Register  to view this content.
    Last edited by esbencito; 08-02-2018 at 04:24 AM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Check if sheet in array is unprotected

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Contributor
    Join Date
    07-13-2017
    Location
    Hong Kong
    MS-Off Ver
    MS Office 365
    Posts
    481

    Re: Check if sheet in array is unprotected

    Yup. Perfect! 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. Spell check unprotected cells in a protected worksheet
    By Dragman in forum Excel General
    Replies: 10
    Last Post: 06-14-2022, 12:26 AM
  2. Replies: 3
    Last Post: 01-29-2016, 03:57 PM
  3. How can i make Unprotected sheet in Excell......
    By sagrok in forum Excel General
    Replies: 1
    Last Post: 02-25-2013, 04:03 AM
  4. Replies: 2
    Last Post: 06-09-2012, 09:08 AM
  5. Copy protected sheet as unprotected
    By davegugg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-09-2009, 03:06 PM
  6. Alert if Sheet is Unprotected
    By loomroser in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-04-2007, 12:30 PM
  7. [SOLVED] Allow unprotected cells to spell check after sheet is protected
    By Numberonekraut (Hans) in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-15-2005, 03:05 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