Sorting a range within a Protected Sheet

bisel

Board Regular
Joined
Jan 4, 2010
Messages
223
Office Version
  1. 365
Platform
  1. Windows
Hello All,

I have performed searches and it appears that my only solution is to use VBA to unprotect the sheet to allow sorts then re-protect once the sort is finished. Here is my dilemma.

I have a sheet with a range that is 250 rows by 17 columns. Within that range, three of the columns have formulas that I wish to prevent the user from making any modifications. But, I want to allow the user to perform sorting and filtering that will include those columns.

Here is what I have tried to do ...
  • Cells in the three columns with formulas are locked
  • Cells in the other columns are unlocked
  • I have set up the entire range with Data Filtering.
  • I have defined the entire range with a name and have set up "Allow Users to Edit Range"
  • While the sheet is unprotected, the sort and filtering works as expected.
  • I protect the sheet with options:
    • Select locked cells
    • Select unlocked cells
    • Sort
    • Use AutoFilter
  • With the sheet protected in this manner, the filter function works fine, however the sort function yields the error , "The cell or chart you're trying to change is on a protected sheet ... "

I really appreciate any help.

Regards,

Steve
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
When you Protect the sheet, you have an option to allow the user to Sort. Is that checkbox clicked in your situation?
 
Upvote 0
I found the answer to my question.
  • Perform the steps as I outlined in my original post ... define range to allow users to edit
  • When protecting the sheet, DO NOT select the option, "Select Locked Cells". It appears that you must leave that unchecked.
  • Select the options for "Sort" and "Use AutoFilter"
The secret sauce was to un-check the "Select locked cells" option.

Steve
 
Upvote 0

Forum statistics

Threads
1,214,791
Messages
6,121,611
Members
449,038
Latest member
apwr

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top