WriteProtection
Contents
[
Hide
]WriteProtection class
Specifies write protection settings for a workbook.
Properties
| Name | Type | Description |
|---|---|---|
| Author | String | Gets and sets the author. |
| RecommendReadOnly | boolean | Indicates if the Read Only Recommended option is selected. |
| IsWriteProtected | boolean | Indicates whether this workbook is write protected. |
| Password | String | Sets the protected password to modify the file. |
Methods
| Name | Description |
|---|---|
| validatePassword | Returns true if the specified password is the same as the write-protection password the file was protected with. |
WriteProtection.Author property
Gets and sets the author.
Type: String
WriteProtection.RecommendReadOnly property
Indicates if the Read Only Recommended option is selected.
Type: boolean
WriteProtection.IsWriteProtected property
Indicates whether this workbook is write protected.
Type: boolean
WriteProtection.Password property
Sets the protected password to modify the file.
Type: String
validatePassword(password)
Returns true if the specified password is the same as the write-protection password the file was protected with.
| Parameter | Type | Description |
|---|---|---|
| password | String | The specified password. |