![]() |
macro to protect sheet
Hi,
That's the default for sheet protection so use Sub sonic() 'Your code ActiveSheet.Protect Password:="mypass" End Sub "richzip" wrote: I have macro code set up to copy data from a large worksheet into a template, and then save the template with a new name. I would like to protect the worksheet after copying the data onto it. I want the options "select locked cells" and "select unlocked cells" to be the only ones checked. What macro code can I add to accomplish this? Thank you |
All times are GMT +1. The time now is 11:07 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com