Good Morning,
I have a workbook with many sheets that contain a mixture of cells that are locked and unlocked. Is it possible to programmatically Protect/Unprotect a given sheet with a pass word? Basically, I have macros that update locked cells, but the macro fails b/c the cells are locked. I need to be able to unlock the sheet via VBA, execute my macro and the relock the protected cells. The password can be in the VBA code b/c I will have the VBA project locked for viewing.
I recorded a macro of me doing what the locking part of it, but I dont see how to insert a password. Here is the recorded code:
What I would like is something like this:
Thank you for any help that can be provided
learning_vba
Bookmarks