+ Reply to Thread
Results 1 to 6 of 6

Protect unprotect sheets with password and sort

  1. #1
    Forum Contributor
    Join Date
    10-10-2006
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2019, Win 10
    Posts
    102

    Protect unprotect sheets with password and sort

    I have the following code (provided here some years ago) which works fine. But I now need to modify it to include an optional password and to allow sort of unprotected cells on manually chosen sheets. Is this possible?

    Please Login or Register  to view this content.
    TIA

    Alan B
    Last edited by Zagra147; 05-13-2014 at 01:29 PM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Protect unprotect sheets with password and sort

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  3. #3
    Forum Contributor
    Join Date
    10-10-2006
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2019, Win 10
    Posts
    102

    Re: Protect unprotect sheets with password and sort

    Done. Code tags added.

  4. #4
    Forum Contributor
    Join Date
    10-10-2006
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2019, Win 10
    Posts
    102

    Re: Protect unprotect sheets with password and sort

    Perhaps if I do it again...
    I have the following code (provided here some years ago) which works fine. But I now need to modify it to include an optional password and to allow manual sort of unprotected cells on manually chosen sheets. Is this possible?

    Please Login or Register  to view this content.

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Protect unprotect sheets with password and sort

    Add password after protecting:

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    10-10-2006
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2019, Win 10
    Posts
    102

    Re: Protect unprotect sheets with password and sort

    Sorry. That doesn't work. It doesn't ask for a password and the 'sort' icon on the ribbon is 'greyed-out'. I tried deleting 'Zagra147' and just left the quotes. Still didn't work. All I want to do is to duplicate the manual protect/unprotect with the "Select Locked Cells", "Select Unlocked Cells", "Sort" boxes ticked for all sheets.

+ 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. VBA to Unprotect (w/ password), Unhide, Hide, and Protect (w/ password)
    By pger34 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-14-2012, 12:35 PM
  2. [SOLVED] Password protect and unprotect all sheets EXCEPT two named sheets
    By Ducatisto in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-29-2012, 05:43 AM
  3. FIXED - MAcro to protect/unprotect sheets based on password in cell
    By pmcook1979 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-10-2012, 04:28 AM
  4. Macros to protect and unprotect sheets (Without a password)
    By David_S_Walker in forum Excel General
    Replies: 6
    Last Post: 03-30-2010, 06:44 AM
  5. [SOLVED] Re: Password - Protect, UnProtect
    By Jeff in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2005, 04:06 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