Activate sheet Version 1 (Python)
Action group: Office
Description
The action makes the worksheet active. If both parameters "Sheet name" and "Sheet index" are not specified, an error will be thrown
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | Action context for ods/xlsx document | Robin.OpenSheetD oc | Yes | |
Sheet identification method | The parameter sets the identification method of the sheet to activate: via name or index | Robin.String | Yes | |
Sheet name | The name of the sheet to which the action will be applied. If the parameter points to a hidden sheet, the action will fail. | Robin.String | No | |
Sheet index | Sequence number of the sheet to apply the action to. The sequence number starts with «1». If the parameter points to a hidden sheet, the action will fail. | Robin.Numeric | No |
Special conditions of use
None.
Example of use
Task
There is a document called Test with a filled sheet "Sheet1" and a blank sheet "Sheet2":
You need to copy the data from sheet "Sheet1", switch to sheet "Sheet2", paste the values and save the document.
Solution
Use the actions "Open", "Take table", "Activate sheet", "Insert table", "Save".
Implementation
- Assemble a robot scheme consisting of actions:
Set the parameter for the "Open" action.
- Set the parameter for the "Take table" action.
- Set the parameter for the "Activate sheet" action.
- Set the parameter for the "Insert table" action.
- Set the parameter for the "Save" action.
- Launch the robot using the "Start" button in the top panel.
Result
The program robot completed successfully.
The data was copied from sheet "Sheet1" to sheet "Sheet2":
Обзор
Инструменты контента