Create Version 2 (Python)
Action group: Office
Description
Action creates a new spreadsheet in the specified folder
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Document name | The name of the new document to create. This action creates a file with the extension from the file name (sould be ods or xlsx) | Robin.String | Yes | |
Folder | The path to the folder where the document will be saved | Robin.FolderPath | C:\doc\img | Yes |
Overwrite | Boolean variable, optional parameter. The default is false. If the value of the parameter is True and a file with the same name already exists in the folder, then the existing file will be overwritten. | Robin.Boolean | true | No |
Results | ||||
Path to file | Full path to the created file. | Robin.FilePath |
Special conditions of use
None.
Example of use
Task
Create a New.xlsx file on the desktop.
Solution
Use the action "Create".
Implementation
- Move the "Create" action to the workspace and fill in its parameters
In the "Document name" field specify the value = New.xlsx
In the "Folder" field specify the future location of the document.
In the "Path to file" field, specify the "Path to file" variable, having created it in advance. - Launch the robot using the "Start" button in the top panel.
Result
The program robot completed successfully.
A document is created on the desktop. The path to the file is saved to a variable.
Обзор
Инструменты контента