Excel: Add workbook password

Add password protection to a workbook.

Help Centre › Building Processes

Add password protection to a workbook.

Runs on: macOS and Windows only.

Add it to a process

In the process designer, open the Add step tab. Find Add workbook password under Excel › Workbook, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
File pathNoEnter the file path, or use a variable such as {folders::desktop::path}\file.xlsx. Leave blank to use the workbook an earlier step opened.
PasswordYesThe password people will need to open this workbook from now on. The step sets it and saves the file. Works on Windows and Mac.

See all Excel steps.

Errors

ErrorDescription
File not foundThe specified file does not exist

Tips

  • The file must be closed before encrypting
  • This adds workbook-level password protection

Related functions

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.