Skip to main content

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​

InputTypeRequiredDefaultWhat it is
PasswordCredentialNoPassword needed to unlock the structure; a credential from the vault or text.
SessionStringNoexcelWorkbook session.
Lock structureBooleanNotrueStop sheets being added, removed, moved, renamed or unhidden.
Lock windowsBooleanNofalseAlso fix the size and position of the workbook windows.
Open passwordCredentialNoEncrypt the file with this password when it is saved, so it cannot be opened without it.