Vba Protect Sheet But Allow Macro. I want to lock the sheets, to disallow the users interact in any other way but checking the boxes. Result when you click the command button on the sheet: Explanation: The macro uses the InputBox method of the Application object.
It works perfectly except, in my original protection setting I allowed users to insert rows, but when the macro Can someone give me some points to get the protection to allow the inserting of rows? So, I found this macro, but I can't seem to put it in the right location for it to work. Protecting sheets disables macros from running!!
You have now protected all sheets with the password "password" Macro's you run on those sheets that effect the cells with formula's will not run until you unprotect End Sub[/vba].
When you lock cells on a.
Verify that the CAPSLOCK key is not activated and that you are using the correct case. The VBA code runs both in the Workbook module (via Workbook_Open method) but also using modules. Also the code to protect and unprotect all my sheets seem to have a problem, because the sheets are not protected.