EXCEL Move sheet function

The EXCEL Move sheet function in RPA.

Help CentreBuilding Processes

This article describes the RPA Excel functionality to move a sheet to a specific position in a workbook.

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


Description

The EXCEL Move sheet function repositions a sheet within the workbook. You can move it to the first or last position, or place it before or after a named reference sheet.


Setting it up

To use the EXCEL Move sheet function, follow these instructions:

{{popups:rpas/add:action=excel-move-sheet}}

Once on a process map:

  1. Navigate to the process where you would like to add the EXCEL Move sheet function
  2. Click on the green button’s drop-down (right side of the green button labelled “Process”)
  3. On the menu that appears, click on the “+ Activity” item
  4. From here you can select the EXCEL Move sheet option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
SheetYesTextName of the sheet to move
PositionYesSelectLastWhere to place the sheet: First, Last, Before, or After
Reference sheetNoTextReference sheet name (required when position is Before or After)

Output variables

This action does not produce any output variables.


Errors

ErrorDescription
File not openThe Excel file must be open
Sheet not foundThe specified sheet does not exist
Reference sheet not foundThe reference sheet does not exist (when using Before or After)

Tips

  • Use First or Last for simple repositioning without needing a reference sheet
  • Use Before or After with a reference sheet name for precise placement
  • Combine with Sort sheets for bulk reordering

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.