Protect sheet
Password-protect a worksheet so its locked cells cannot be edited in Excel, choosing which operations people may still perform.
Command in the Excel toolkit · id ooa.excel/protect_sheet · 18 inputs (1 required), no outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Password | Credential | Yes | Password needed to unprotect the sheet; a credential from the vault or text. | |
| Sheet | String | No | Sheet name; active sheet when empty. | |
| Session | String | No | excel | Workbook session. |
| Allow select locked | Boolean | No | true | People may select locked cells. |
| Allow select unlocked | Boolean | No | true | People may select unlocked cells. |
| Allow format cells | Boolean | No | false | People may format cells. |
| Allow format columns | Boolean | No | false | People may change column widths and hide columns. |
| Allow format rows | Boolean | No | false | People may change row heights and hide rows. |
| Allow insert rows | Boolean | No | false | People may insert rows. |
| Allow insert columns | Boolean | No | false | People may insert columns. |
| Allow delete rows | Boolean | No | false | People may delete rows. |
| Allow delete columns | Boolean | No | false | People may delete columns. |
| Allow sort | Boolean | No | false | People may sort. |
| Allow filter | Boolean | No | false | People may use AutoFilter. |
| Allow insert hyperlinks | Boolean | No | false | People may insert links. |
| Allow pivot tables | Boolean | No | false | People may use and change pivot tables. |
| Allow edit objects | Boolean | No | false | People may change pictures, charts and other objects. |
| Allow edit scenarios | Boolean | No | false | People may change what-if scenarios. |