EXCEL Sort sheets function

The EXCEL Sort sheets function in RPA.

Help CentreBuilding Processes

This article describes the RPA Excel functionality to sort sheets alphabetically within a workbook.

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


Description

The EXCEL Sort sheets function reorders all sheets in the workbook alphabetically (ascending or descending). You can optionally pin specific sheets to stay at the beginning or end of the workbook regardless of alphabetical order.


Setting it up

To use the EXCEL Sort sheets function, follow these instructions:

{{popups:rpas/add:action=excel-sort-sheets}}

Once on a process map:

  1. Navigate to the process where you would like to add the EXCEL Sort sheets 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 Sort sheets option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
OrderNoSelectAscendingSort direction: Ascending (A–Z) or Descending (Z–A)
Pin at startNoTextComma-separated sheet names to keep at the beginning
Pin at endNoTextComma-separated sheet names to keep at the end

Output variables

This action does not produce any output variables.


Errors

ErrorDescription
File not openThe Excel file must be open

Tips

  • Use Pin at start to keep summary or index sheets at the front (e.g. "Summary, Index")
  • Use Pin at end to keep reference or lookup sheets at the back (e.g. "Lookup, Config")
  • Pinned sheets maintain the order you specify; all other sheets are sorted alphabetically between them

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.