[]
Protects a sheet so that it cannot be modified.
bool Protect(WorksheetLocks locks, string password = null)
Function Protect(locks As WorksheetLocks, Optional password As String = Nothing) As Boolean
Type | Name | Description |
---|---|---|
WorksheetLocks | locks | A WorksheetLocks value indicates which data will be protected. |
string | password | A string that specifies a case-sensitive password for the sheet. |
Type | Description |
---|---|
bool |
|