Rename sheet Version 1 (Python)
Action group: Office
Description
Action renames the specified sheet
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | Action context for working with ods/xlsx table. | Robin.OpenSheetD oc | Yes | |
Identification method | Select the way to identify the sheet to be renamed: by name or index. | Robin.String | Yes | |
Sheet name | Name of the sheet to which the action will be applied. If the parameter indicates a hidden sheet, the action will fail. | Robin.String | No | |
Sheet index | The sequence number of the sheet to which the action will be applied. The numbering starts from 1. If the parameter indicates a hidden sheet, the action will fail. | Robin.Numeric | No | |
New sheet name | New name of the sheet. The name must not exceed 31 characters in length, contain «:», «/», » «, «? «, «*», «[» and «]», otherwise the action will fail. | Robin.String | Yes |
Special conditions of use
None.
Example of use
Task
It is necessary to rename the first sheet of the tabular document "Test 1" to "New sheet"
Solution
Use the actions "Open", "Rename sheet", "Save".
Implementation
Assemble a robot scheme consisting of actions:
Set the "Open" action parameter.
Set the parameters of the "Rename sheet" action.
Set the "Save" action parameter.
Launch the robot using the "Start" button in the top panel.
Result
The program robot completed successfully. The sheet has been renamed.
In the "Test 1" document, "Sheet 1" has been renamed "New sheet".
Обзор
Инструменты контента