Vba Protect Unhide Sheet. Protecting sheet involves various parameters to supply this is unlike Unprotecting the sheet. Lastly you can password protect your vba project: Tools This way the needed sheets can be hidden without the Unhide option from the menu.
Also the code to protect and unprotect all my sheets seem to have a problem, because the sheets are not protected when I first open the file. This is a simple example of what you can do. Check the "Lock Project For Viewing" checkbox, and enter and confirm a password you will remember.
When you protect the sheet, all cells are locked except those that you have specifically unlocked.
Problem: when I protect the sheet using the toolbar commands, it overrides my VBA routine so that these toggle buttons don't work.
Sub UnProtectSheet() 'Excel VBA to lock and protect a sheet. Run macro on protected worksheet, code remaining visible & editable, but Sub hideSheet() 'you can make a worksheet "very hidden" which means that it will not be visible to the user and it can be unhidden only with a VBA. 'protect/unprotect worksheet. To unhide a Sheet in VBA, use the worksheet Visible property If your workbook structure is password-protected you must do this instead Sheet protection is particularly frustrating because it has to be applied one sheet at a time.