Forum Discussion
Stoney79
Mar 04, 2020Copper Contributor
Losing Protect Sheet Features when saving
I have a number of sheets in a workbook which are protected and the Format cells option is ticked. However when unprotecting and reprotecting through vba and saving the file under a different name the protect sheet option are reverting back to the default setting. Select locked and unlocked cells. How do a retain the format cells option?
3 Replies
- JKPieterseSilver ContributorI'd need to see your current VBA code that does the protecting.
- Stoney79Copper ContributorThe code is simply. Sheet1. Protect
- JKPieterseSilver ContributorIf you include the arguments the Protect method has with the proper values for them it will work as expected.