Get value from cell Version 1 (Python)
Action group: Office
Description
The action returns the value from the specified cell
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | Action context for ods/xlsx document | Robin.OpenSheetD oc | Yes | |
Column of the cell | Column of the cell from which the action will return. | Robin.String | Yes | |
Row of the cell | Row of the cell from which the action will return. | Robin.Numeric | Yes | |
Results | ||||
Result | The variable into which the value from the cell will be written | Robin.Object |
Special conditions of use
None.
Example of use
Task
There is a file Book1.xlsx, I need to get data from cell A4, save and close the document.
Solution
Use the actions "Open", "Get value from cell", "Save", "Close"
Implementation
- Move the "Open" action to the workspace and set its parameters
In the "PAth to file" field specify the path to the file Book1.xlsx - Move the "Get value from cell" action to the workspace and fill in its parameters
In the "Context" field, specify the context created in step 1.
In the "Column of the cell" field specify the value = A.
In the "Row of the cell" field specify the value = 4.
In the "Result" field specify the variable "Object", having created it in advance. - Move the "Save" action to the workspace and set its parameter.
In the "Context" field specify the context of the opened document. - Move the Close action to the workspace and set its parameter.
- Launch the robot using the "Start" button in the top panel.
Result
The program robot completed successfully.
The value from cell A4 has been successfully written to the variable "Object".
The file is saved and closed.
Обзор
Инструменты контента