Excel: Active sheet

Return the name of the currently active sheet.

Help Centre › Building Processes

Return the name of the currently active sheet.

Runs on: macOS and Windows only.

Add it to a process

In the process designer, open the Add step tab. Find Active sheet under Excel › Sheets, 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.
VariableNoName of the variable where the result will be stored Default: active_sheet.

What it gives back

  • {active_sheet}

See all Excel steps.

Errors

ErrorDescription
File not foundThe specified Excel file could not be found.
No active workbookNo workbook is currently open at the specified path.

Tips

  • Use this function to save the current sheet name before switching sheets, so you can return to it later.
  • The returned name matches the sheet tab label exactly, including capitalisation and spaces.

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.