Click or drag to resize

ExcelWorksheetSecurity Methods

The ExcelWorksheetSecurity type exposes the following members.

Methods
 NameDescription
Public methodProtectWorksheet Protect the worksheet using the default protection options.
Public methodProtectWorksheet(ExcelProtectionAllowFlags) Protects the worksheet and allows only the operations specified by the protection flags.
Public methodProtectWorksheet(String) Protect the worksheet using the default protection options and set a password required to unprotect the worksheet.
Public methodProtectWorksheet(String, ExcelProtectionAllowFlags) Protects the worksheet and allows only the operations specified by the protection flags and set a password required to unprotect the worksheet.
Public methodUnprotectWorksheet Unprotects the worksheet when no password was used to protect the worksheet.
Public methodUnprotectWorksheet(String) Unprotects the worksheet providing the password used when the worksheet was protected.
Top
See Also