alright, I am over trying to protect my worksheet properly!
I have this module so that I can turn on and off the Protection when I need to Sort - or adjust things via VBA:
[VBA]Public Sub ProtectionSwap(Optional ByVal fLock As Boolean = False)
Dim oWst As Excel.Worksheet
For Each oWst In ThisWorkbook.Worksheets
If fLock Then
oWst.Protect "My_Password", DrawingObjects:=False, Contents:=True, Scenarios:=True, AllowSorting:=True
ActiveSheet.EnableSelection = xlUnlockedCells
Else
oWst.Unprotect "My_Password"
End If
Next
End Sub[/VBA]
Now I want to let the user Select all unlocked cells but not the locked cells - but for some reason when I run the protection swap the user once again can select the locked cells.
Does anybody know what is going on?