Skip to main content

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​

InputTypeRequiredDefaultWhat it is
PasswordCredentialYesPassword needed to unprotect the sheet; a credential from the vault or text.
SheetStringNoSheet name; active sheet when empty.
SessionStringNoexcelWorkbook session.
Allow select lockedBooleanNotruePeople may select locked cells.
Allow select unlockedBooleanNotruePeople may select unlocked cells.
Allow format cellsBooleanNofalsePeople may format cells.
Allow format columnsBooleanNofalsePeople may change column widths and hide columns.
Allow format rowsBooleanNofalsePeople may change row heights and hide rows.
Allow insert rowsBooleanNofalsePeople may insert rows.
Allow insert columnsBooleanNofalsePeople may insert columns.
Allow delete rowsBooleanNofalsePeople may delete rows.
Allow delete columnsBooleanNofalsePeople may delete columns.
Allow sortBooleanNofalsePeople may sort.
Allow filterBooleanNofalsePeople may use AutoFilter.
Allow insert hyperlinksBooleanNofalsePeople may insert links.
Allow pivot tablesBooleanNofalsePeople may use and change pivot tables.
Allow edit objectsBooleanNofalsePeople may change pictures, charts and other objects.
Allow edit scenariosBooleanNofalsePeople may change what-if scenarios.