NativeExcel for .Net Developer's Reference

IWorkbook.UnprotectMethod()

Removes protection from a workbook. This method has no effect if the workbook isn't protected.

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

Example

This example removes protection from the workbook.

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

See Also

IWorkbook Interface | NativeExcel Namespace | IWorkbook.Unprotect Overload List | Unprotect Method