Protect workbook
Require a password to open the file, lock the workbook structure and window layout with a password, or both.
Command in the Excel toolkit · id ooa.excel/protect_workbook · 5 inputs, no outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Password | Credential | No | Password needed to unlock the structure; a credential from the vault or text. | |
| Session | String | No | excel | Workbook session. |
| Lock structure | Boolean | No | true | Stop sheets being added, removed, moved, renamed or unhidden. |
| Lock windows | Boolean | No | false | Also fix the size and position of the workbook windows. |
| Open password | Credential | No | Encrypt the file with this password when it is saved, so it cannot be opened without it. |