Action group: Excel
Description
Deletes a sheet from the document.
Property | Description | Type | Example of filling in | Obligatory to fill in the field |
---|---|---|---|---|
Parameters | ||||
Context | The unique identifier of the session to which the action will be applied. | Excel instance | EXCEL_INSTANCE | Yes |
Sheet identification method | Specifies a way to identify a sheet through a name or index. Drop-down list:
After selecting the value of this field, the action will refer to either the value of the "Sheet name" field or the value of the "Sheet index" field. | String | Sheet index | Yes |
Sheet name | The name of the sheet to which the action will be applied. | String | Sheet1 | No |
Sheet index | The sequence number of the sheet to which the action will be applied. | Numeric | 1 | No |
The only existing sheet cannot be deleted, an error will be caused.
The active sheet does not change if it is not the one selected for deletion.
If an active sheet has been deleted, the next sheet in order, if it exists, becomes active.
If the next sheet does not exist, the previous sheet is activated.
An Excel document has 2 sheets named "Sheet1" and "Sheet2". You need to delete "Sheet2".
Use the actions "Open", "Delete sheet", "Save".
Customize the parameters of the "Save" action. Specify the context of the Excel document in the Context parameter.
Launch the robot using the "Start" button in the top panel.
The robot completed successfully. Sheet2 is deleted from the document.