Here's some code that might address your problem:
Protecting / Unprotecting a sheet [27/10/2001]
The macros below will protect/unprotect the current worksheet with a password.
Sub ProtectSheet()
Dim Password 'This line of code is optional
Password = "1234"...
You must unprotect the file that's already open. Here's some code that might help.
Protecting / Unprotecting a sheet [27/10/2001]
The macros below will protect/unprotect the current worksheet with a password.
Sub ProtectSheet()
Dim Password 'This line of code is optional...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.