Excel: Lock cells

Lock specific cells so they cannot be edited when the sheet is protected.

Help Centre › Building Processes

Lock specific cells so they cannot be edited when the sheet is protected.

Runs on: macOS and Windows only.

Add it to a process

In the process designer, open the Add step tab. Find Lock cells under Excel › Formatting, 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.
SheetYesName of the sheet in the Excel file. Supports wildcards: * matches any characters.
CellYesThe cell, e.g. A1, or {variable}.
LockedNoLock cells (true) or unlock cells (false) Default: on.

See all Excel steps.

Errors

ErrorDescription
File not openThe Excel file must be open
Invalid rangeThe specified cell or range is not valid

Tips

  • Locking cells only takes effect when the sheet is protected using the Add sheet password function
  • By default, all cells in Excel are locked – use this to unlock specific cells before protecting the sheet
  • Set Locked to off to allow users to edit specific cells in a protected sheet

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.