I think you answered your own question.
The sheet needs to be unprotected before you can sort.
if your sheet has a passwrod![]()
ActiveSheet.Unprotect 'your code here ActiveSheet.Protect
expression.Unprotect(Password)
Then protect it with the same password
Bookmarks