Xceed Workbooks for .NET v3.0 Documentation
Xceed.Workbooks.NET Assembly / Xceed.Workbooks.NET Namespace / Worksheet Class / Unprotect Method

The password that will be used to unprotect the protected Worksheet. 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 Worksheet was protected without using a password. The default value for the parameter is, in fact, null, which allows to unprotect a Worksheet without the use of a password when no password was set when the Protect method was used.



In This Topic
    Unprotect Method (Worksheet)
    In This Topic
    Unprotects a Worksheet.
    Syntax
    'Declaration
     
    
    Public Sub Unprotect( _
       Optional ByVal password As String _
    ) 
    'Usage
     
    
    Dim instance As Worksheet
    Dim password As String
     
    instance.Unprotect(password)
    public void Unprotect( 
       string password
    )

    Parameters

    password

    The password that will be used to unprotect the protected Worksheet. 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 Worksheet was protected without using a password. The default value for the parameter is, in fact, null, which allows to unprotect a Worksheet 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