[]
Protects a sheet so that it cannot be modified.
bool Protect(string password = null)
Function Protect(Optional password As String = Nothing) As Boolean
Type | Name | Description |
---|---|---|
string | password | A string that specifies a case-sensitive password for the sheet. |
Type | Description |
---|---|
bool |
|
Note that support for WorksheetLocks is limited to reading and writing the OpenXML file. All options of WorksheetLocks have same effect in runtime.