Help Centre › Building Processes
This article describes the RPA Excel functionality to test if a sheet exists.
For a full list of available functions, please read EXCEL functions.
Description
The EXCEL Test if a sheet exists function allows you to test if a sheet exists.
Setting it up
To use the EXCEL Test if a sheet exists function, follow these instructions:
{{popups:rpas/add:action=excel-sheet-exist}}
Once on a process map:
- Navigate to the process where you would like to add the EXCEL Test if a sheet exists function
- Click on the green button’s drop-down (right side of the green button labelled “Process”)
- On the menu that appears, click on the “+ Activity” item
- From here you can select the EXCEL Test if a sheet exists option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Sheet | Yes | Text | - | The name of the sheet to check |
| Variable | Yes | Text | - | Variable to store the result (true/false) |
Output variables
| Variable | Type | Description |
|---|---|---|
| Variable | Boolean | True if the sheet exists, false otherwise |
Errors
| Error | Description |
|---|---|
| File not open | The Excel file must be open |
Tips
- Use this to verify a sheet exists before reading or writing to it