[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IWorksheet.Unprotect

Unprotect Method

Unprotect(string)

Removes worksheet protection by using the specified password.

Pass null only when the worksheet was protected without a password.

Declaration
void Unprotect(string password = null)
Sub Unprotect(Optional password As String = Nothing)
Parameters
Type Name Description
string password

The password used to remove worksheet protection, or null if the worksheet was protected without a password.

Examples
worksheet.Range["A1"].Value = "Name";
worksheet.Protect();
worksheet.Unprotect();