NativeExcel2 for .Net Developer's Reference

IWorksheet.UnprotectMethod()

Removes protection from a sheet without using a password.

[Visual Basic]
SubUnprotect()
[C#]
voidUnprotect();
[C++]
voidUnprotect();
[JScript]
functionUnprotect();

Example

This example removes protection from a worksheet one.

[C#]
book.Worksheets[1].Unprotect(); 
[VisualBasic]
book.Worksheets(1).Unprotect() 
[C++]
book->Worksheets->Item[1]->Unprotect();

See Also

IWorksheet Interface | NativeExcel Namespace | IWorksheet.Unprotect Overload List | Protect Method