NativeExcel for .Net Developer's Reference

IWorkbook.ProtectMethod()

Protects a workbook so that it cannot be modified.

[Visual Basic]
SubProtect()
[C#]
voidProtect();
[C++]
voidProtect();
[JScript]
functionProtect();

Example

This example protects the the workbook.

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

See Also

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