O
Octavius Khan
I am using VS2008 and am creating an Exel 2003 project. The existing file
that I am using has protected worksheets, but I cannot get it to compile.
When I use the following code, I an error message that the sheet is protect
even though I've entered the correct password.
Private Sub Sheet1_Startup(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Startup
Unprotect("test")
End Sub
If I use Unprotect(), it compiles, but the sheet remains protected.
The help system doesn't show how I can enter a password. Can someone point
me into the direction of examples to properly use this?
Thanks.
that I am using has protected worksheets, but I cannot get it to compile.
When I use the following code, I an error message that the sheet is protect
even though I've entered the correct password.
Private Sub Sheet1_Startup(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Startup
Unprotect("test")
End Sub
If I use Unprotect(), it compiles, but the sheet remains protected.
The help system doesn't show how I can enter a password. Can someone point
me into the direction of examples to properly use this?
Thanks.