• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

macro for lock unlock work sheet.

[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]
 
Back
Top