Xceed Workbooks for .NET v2.0 Documentation
Unprotect Method (Workbook)


Xceed.Workbooks.NET Assembly > Xceed.Workbooks.NET Namespace > Workbook Class : Unprotect Method

The password that will be used to unprotect the protected Workbook. This password must be the same as the one set when the Protect method was used.

Note, however, that this parameter does not require a value if the Workbook was protected without using a password. The default value for the parameter is, in fact, null, which allows to unprotect a Workbook without the use of a password when no password was set when the Protect method was used.

 

Removes the protection that was added on the Workbook.
Syntax
'Declaration
 
Public Sub Unprotect( _
   Optional ByVal password As String _
) 
'Usage
 
Dim instance As Workbook
Dim password As String
 
instance.Unprotect(password)
public void Unprotect( 
   string password
)

Parameters

password

The password that will be used to unprotect the protected Workbook. This password must be the same as the one set when the Protect method was used.

Note, however, that this parameter does not require a value if the Workbook was protected without using a password. The default value for the parameter is, in fact, null, which allows to unprotect a Workbook without the use of a password when no password was set when the Protect method was used.

 

Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Workbook Class
Workbook Members