+ Reply to Thread
Results 1 to 6 of 6

Sorting in Protected Worksheet

  1. #1
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    500

    Sorting in Protected Worksheet

    Greetings,
    I have spent the past several hours trying to figure out how to allow sorting columns in a protected worksheet. I found the following code online, but it does not allow me to sort the columns. I have also checked "Sort" and "Use AutoFilter" prior to protecting the worksheet. "Call Open_Work" is a macro not associated.
    Please Login or Register  to view this content.

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Sorting in Protected Worksheet

    What if you do it like this ?

    Did you check that the cells to be sorted are unlocked ?
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    500

    Re: Sorting in Protected Worksheet

    bakerman2,
    Thank you for your reply. Your code allows the columns to be filtered, but not sorted.
    I'm not sure what you mean by "check that the cells to be sorted are unlocked ?"

  4. #4
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    500

    Re: Sorting in Protected Worksheet

    bakerman2,
    Not sure what I was thinking about regarding the "unlocked" cells. Yes the cells within the column are locked.

  5. #5
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Sorting in Protected Worksheet

    You cannot sort locked cells.

  6. #6
    Forum Contributor
    Join Date
    07-07-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    500

    Re: Sorting in Protected Worksheet

    bakerman2,
    After spending most of yesterday searching the web and trying different macros, that is what I discovered. I did create a macro that will unlock the worksheet, which will allow the user to perform a sort. Is there a way to assign a macro to a drop down arrow - I created another thread and awaiting replies.

+ 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. Sorting protected shared worksheet
    By Nigel in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-29-2008, 11:27 AM
  2. sorting data on protected worksheet
    By Sue in forum Excel General
    Replies: 20
    Last Post: 06-13-2006, 10:20 AM
  3. Sorting protected worksheet & workbook
    By Sue in forum Excel General
    Replies: 7
    Last Post: 09-23-2005, 09:05 AM
  4. Sorting Protected Worksheet
    By Vonner in forum Excel General
    Replies: 1
    Last Post: 07-16-2005, 11:05 AM
  5. Sorting on a protected worksheet
    By Sue in forum Excel General
    Replies: 6
    Last Post: 06-12-2005, 05:05 AM
  6. Sorting cells in a protected worksheet.
    By stormfinch2 in forum Excel General
    Replies: 0
    Last Post: 03-29-2005, 11:52 AM
  7. [SOLVED] Question about sorting in protected worksheet
    By SJC in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-24-2005, 07: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