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
| Field | Required | What it does |
|---|---|---|
| File path | No | Enter the file path, or use a variable such as {folders::desktop::path}\file.xlsx. Leave blank to use the workbook an earlier step opened. |
| Sheet | Yes | Name of the sheet in the Excel file. Supports wildcards: * matches any characters. |
| Cell | Yes | The cell, e.g. A1, or {variable}. |
| Locked | No | Lock cells (true) or unlock cells (false) Default: on. |
See all Excel steps.
Errors
| Error | Description |
|---|---|
| File not open | The Excel file must be open |
| Invalid range | The 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