I have unlocked all cells, then I have locked the columns I wanted
protected and then password protected the sheet using the following
code:
ActiveSheet.Protect _
DrawingObjects:=True, _
Contents:=True, _
Scenarios:=True, _
AllowFormattingCells:=True, _
AllowFormattingColumns:=True, _
AllowFormattingRows:=True, _
AllowSorting:=True, _
AllowFiltering:=True, _
Password:="password"
However, after protecting, the columns ARE protected,
But the sort & autofilter options are grayed out in the menu (don't
work!)
Can anyone tell me why?