Vba Protect Sheet Allow Selection. These include turning protection on and off on other sheets (using a password), although none of the other sections deal with filtering. Allowing VBA code to make changes.
True allows the user to delete columns on the protected worksheet, where every cell in the column to be deleted is unlocked.
Sub allowFormattingCellsOnProtectedWs() 'Allow formatting of cells on a protected worksheet (from user interface or with VBA code), without using the UserInterfaceOnly argument.
Protect Sheet - Allow VBA to Make Changes. You can change the protection permissions by recording the macro with a different set of selections in the dialog box. It also explains how to unlock Excel spreadsheet without password if you forgot or Anyone who has at least some basic knowledge of VBA can crack it in minutes (here's an example of the VBA code that easily cracks passwords in.