NativeExcel for .Net Developer's Reference

IWorkbook.ProtectMethod

Protects a workbook so that it cannot be modified.

Overload List

Protects a workbook so that it cannot be modified.

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

Protects and sets the password for a workbook.

[Visual Basic] SubProtect(ByValString)
[C#] voidProtect(string);
[C++] voidProtect(String*);
[JScript] functionProtect(String);

See Also

IWorkbook Interface | NativeExcel Namespace | Unprotect Method | Unprotect Method