EXCEL Lock cells function

The EXCEL Lock cells function in RPA.

Help CentreBuilding Processes

This article describes the RPA Excel functionality to lock cells.

For a full list of available functions, please read EXCEL functions.


Description

The EXCEL Lock cells function locks or unlocks specific cells so they cannot be edited when the sheet is protected. Use this together with sheet protection to control which cells users can modify.


Setting it up

To use the EXCEL Lock cells function, follow these instructions:

{{popups:rpas/add:action=excel-cell-lock}}

Once on a process map:

  1. Navigate to the process where you would like to add the function
  2. Click on the green button’s drop-down
  3. Click on “+ Activity”
  4. Select the EXCEL Lock cells option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
CellYesText-The cell or range to lock/unlock (e.g. A1:B10)
LockedNoSwitchOnLock cells (on) or unlock cells (off)

Output variables

This action does not produce output variables.


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

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.