MikeBronner
Programmer
I'm trying to unprotect an excel worksheet using VB Code:
Sheet1.Unprotect
(The worksheet is already protected at this point.)
Excel returns the following error:
"Run-Time Error '1004':
Method 'Protect' of object '_WorkSheet' failed"
I also get this error if I try to protect the worksheet with the following code:
Sheet1.Protect(" "
Is there a workaround that will let me protect and unprotect the worksheet using VB code?
Thanks! Take Care,
Mike
Sheet1.Unprotect
(The worksheet is already protected at this point.)
Excel returns the following error:
"Run-Time Error '1004':
Method 'Protect' of object '_WorkSheet' failed"
I also get this error if I try to protect the worksheet with the following code:
Sheet1.Protect(" "
Is there a workaround that will let me protect and unprotect the worksheet using VB code?
Thanks! Take Care,
Mike