+ Reply to Thread
Results 1 to 5 of 5

Worksheet Protection

  1. #1
    Registered User
    Join Date
    09-23-2015
    Location
    Minnesota, USA
    MS-Off Ver
    Excel 2013
    Posts
    3

    Worksheet Protection

    I have a worksheet that I want others to be able to view and sort but not have the ability to change. When I protect the worksheet they can sort but still have the ability to change cells. When I protect any of the cells within the range they lose the ability to sort. Can this be done simply?

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Worksheet Protection

    Hi, welcome to the forum.

    This is one of those annoying things that should be easy but isn't. When you protect the sheet, there is a box you can tick to allow users to sort - or so you would think. Unfortunately, Excel doesn't actually sort by re-arranging the rows - instead it actually changes all the values in the rows so that they're in order. The end result looks the same to the user, but as the values are being changed, if the cell is unlocked (which is what you need to prevent changes), then sorting doesn't work.

    Luckily, there's a workaround - it seems a bit complicated at first, but is actually quite simple once you've done it a couple of times. It uses 'Allow Users to Edit Ranges', 'Auto-filter' and 'Protect Sheet'. The first enables you to set a range (or ranges) which users can modify even if the cells are locked (in other words, the cells act as unlocked, even though they're not); the second sets up columns to enable sorting; and the third, obviously I think, protects the sheet to stop changes being made apart from sorting/filtering.

    Enough of the boring background - here's how to do it:

    Part A - setting up the ranges users are allowed to sort.
    1. Select all the cells you would like the users to be able to sort, including the column headings (that's important).
    2. On the 'Data' tab, click 'Filter'. You'll see a little arrow appear next to each heading.
    3. On the 'Review' tab, click 'Allow Users to Edit Ranges'.
    4. Click 'New' and give the range a title (maybe 'Sort_Range_for_team1').
    5. The 'Refers to Cells' box should already be filled in with the range you selected at '1' above.
    6. [Optional] Click 'Permissions', then click 'Add' on the dialogue box which pops up. Enter the names of the users you want to be able to sort. You can do this directly (e.g. type 'Jim' then click 'Check Names'), or you can click 'Advanced' and find users that way (entering nothing in the Advanced search fields and clicking 'Find Now' will list all users and groups). I can't give you exact instructions on which users/groups to add as that depends on how your network is set up. Click OK. If you now click each user/group for which you've added permissions, you'll see that 'Allow' is ticked for 'Edit range without a password', which is what you want. Click OK, OK to get back to the 'Allow Users to Edit Ranges' dialogue box.
    7. Click OK to get back to the worksheet.

    (Note - if you want different teams/your boss/etc to be able to sort different ranges, you can repeat the above for different ranges - though I've never bothered with that myself)

    Part B - prevent editing of the sort-able ranges.
    1. Still on the 'Review' tab, click 'Protect Sheet'.
    2. Un-tick 'Select Locked Cells' (i.e. the box should be empty).
    3. Tick 'Sort' and 'Autofilter'.
    4. Add a password.
    5. Click OK. Re-type the password from '4'.
    6. Click OK.
    (Warning - make sure you don't forget the password, or you won't be able to do any amendments to the sheet again.)

    Now, users can use the little arrows on the Auto-filter arrows on the column headers to sort. The 'Sort' buttons on the 'Data' tab are also enabled, allowing multi-layer sorts (sort by 'Last Name' then 'First Name' for example).

    I hope that's clear enough and does what you want.

    ps I found these instructions in another post somewhere some time ago, so can't take full credit for them; I've mislaid the link, but if I find it I'll edit this post with it, as it had a fuller explanation and a macro solution as well, I think.
    Edit: found it: http://blog.softartisans.com/2013/10...ed-worksheets/
    Last edited by Aardigspook; 09-24-2015 at 05:58 AM. Reason: Add link
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Registered User
    Join Date
    09-23-2015
    Location
    Minnesota, USA
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Worksheet Protection

    Thank you so much! This worked. I did however have to exclude the headings from my sort range. When they were included the headings were sorted with the data. It appears to work ok without their inclusion in the range. I did have a blank row between the headings and the data which was included in the sort range.

    In any case, Thanks.

  4. #4
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Worksheet Protection

    You're welcome. Maybe the headings thing is something different in 2013 from 2010, as it only worked for me when I did include the headings. Glad to have been of help.

    Now that you've got it working, please keep the moderators happy by marking this thread as solved (look above your first post for 'Thread Tools' and mark it 'Solved'). Thanks.
    Last edited by Aardigspook; 09-24-2015 at 04:25 PM.

  5. #5
    Registered User
    Join Date
    09-23-2015
    Location
    Minnesota, USA
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Worksheet Protection

    Actually I made one more modification. Since I had frozen panes at the top, when I scrolled down in the worksheet the filter boxes disappeared from view. To fix this I included the blank row in my frozen pane and still included it in my range of data.

    I was looking for a way to indicate "problem solved" thanks for giving me the answer to that as well.

+ 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. Replies: 1
    Last Post: 11-21-2013, 11:08 AM
  2. [SOLVED] Row-by-row protection on a worksheet
    By oracle741 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-05-2013, 09:34 AM
  3. Worksheet protection
    By galarza in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-03-2009, 06:58 AM
  4. [SOLVED] Worksheet protection is gone and only wokbook protection can be se
    By Eric C. in forum Excel General
    Replies: 4
    Last Post: 05-02-2006, 11:55 AM
  5. [SOLVED] Worksheet Protection
    By mellowe in forum Excel General
    Replies: 3
    Last Post: 02-17-2006, 01:10 PM
  6. Worksheet Protection
    By mellowe in forum Excel General
    Replies: 0
    Last Post: 02-17-2006, 12:05 PM
  7. worksheet protection
    By darkbearpooh1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-27-2006, 03:33 PM
  8. [SOLVED] Worksheet Protection
    By Connie Martin in forum Excel General
    Replies: 4
    Last Post: 12-28-2005, 12:00 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