Luke M Excel Ninja Staff member Feb 9, 2012 #2 [pre] Code: Sub LockSheet() ActiveSheet.Protect End Sub Sub LockSheet() ActiveSheet.Unrotect End Sub If you have/want a password, put a text string after the command line Sub LockSheet() ActiveSheet.Protect "MyPassword" End Sub [/pre]
[pre] Code: Sub LockSheet() ActiveSheet.Protect End Sub Sub LockSheet() ActiveSheet.Unrotect End Sub If you have/want a password, put a text string after the command line Sub LockSheet() ActiveSheet.Protect "MyPassword" End Sub [/pre]