Vba Filter Protected Sheet. The problem I have is that when the sheet is protected and I try to run the code it errors, so is there a way of allowing filters to be turned on and off on a protected sheet? When you protect a worksheet, there is an option to allow filtering (AutoFilter).
The table column below is instantly filtered. If a sheet protected without a password, and now you want to protect it with a password, you need to unprotect it first. Users can change filter criteria but can not enable or disable an auto filter.
The table column below is instantly filtered.
But protection can then be manually turned off without requesting a password.
VBA advanced filtering is used for more complex filtering needs that the AutoFilter in Excel cannot complete. If the cell value is empty, no filter is applied. There is nothing worse than when somebody, who doesn't know what they're doing, over types essential formulas and cell values.