Unprotect the sheet at the beginning and protect it back at the end.
Juan Pablo G.
Been there, done that. I have, of course, created the macros and un-locked the cells and buttons with the page un-protected, then protected the sheet. Any other ideas? :)
I meant at the beggining and end of the macro. That works.
Juan Pablo G.
I did understand that, and that is what I have done. You can't even write a macro if the page is protected. With the worksheet unprotected, I write the macro. Once complete, I protect the sheet. When I click the button to expand, with the sheet protected, I get a runtime error 1004: "Unable to set RowHeight property of the range class". There must be something else I'm leaving out or doing wrong!
Then you're not understanding.
Try this WITH your sheet protected (Change "MYPASSWORD" to your real password)
Sub Testing
ActiveSheet.Unprotect "MYPASSWORD"
Rows(20).RowHeight = 25
ActiveSheet.Protect "MYPASSWORD"
End Sub
Juan Pablo G.
Got it!!! Thanks, Juan Pablo G. I'm a bit of a novice at VB, but thanks to your help, I got it done! THANKS. MT.