unable to sort or filter data on a protected sheet with locked cells

后端 未结 1 374
心在旅途
心在旅途 2021-01-25 11:34

I have a sheet which is protected with locked cells. Even after checking the \"sort\" and \"Auto filter\" option while protecting the sheet, I am still unable to sort/filter the

相关标签:
1条回答
  • 2021-01-25 11:45

    Even with the settings as you mentioned, you can only sort if all the cells to be sorted are unlocked. You can autofilter even if the cells are locked, but you can't turn autofiltering on and off.

    You're post is tagged excel-vba, so I'll mention that you can protect the sheet in code using UserInterfaceOnly:=True and then you can do all of the above using VBA:

    Activesheet.Protect userinterfaceonly:=True, AllowSorting:=True, AllowFiltering:=True
    
    0 讨论(0)
提交回复
热议问题