Vba Protect Sheet Allow Sort. I have a table on a worksheet that needs to stay locked (users can't modifiy the cells) but still users should be able to filter and sort that table. Have questions or feedback about Office VBA or this documentation?
In this tutorial we will be allowing unlocked cells, formatting rows and columns, formatting cells and sorting. Most of the sheets contain charts, they should be. Every cell in the sort range must be unlocked or unprotected.
Knowing how to sort data using VBA can be helpful when included as a part of your code.
Every cell in the sort range must be unlocked or unprotected.
That will save you a lot of time and effort every. When you protect a sheet with UserInterfaceOnly, protection is applied to user actions (basically, keyboard and mouse operations), but VBA is free to True allows the user to sort on the protected worksheet. I have a table on a worksheet that needs to stay locked (users can't modifiy the cells) but still users should be able to filter and sort that table.