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
| 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. |
| Variable | No | Name of the variable where the result will be stored Default: active_sheet. |
What it gives back
{active_sheet}
See all Excel steps.
Errors
| Error | Description |
|---|---|
| File not found | The specified Excel file could not be found. |
| No active workbook | No 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.