Clear range Version 9 (Net)
Action group: Excel
Description
Removes values from the specified area.
Icon
Settings of parameters
Property | Description | Type | Example of filling in | Obligatory to fill in the field |
Parameters | ||||
Context | Action context for working with an Excel document | Excel instance | Excel context | Yes |
Start cell column name | The column name of the initial cell (the beginning of the range) from which the area to be deleted will be set. If the field is not filled in, the value from the "Start cell column index" field is taken. | String | No | |
Start cell column index | The column index of the initial cell (start of the range) from which the area to be deleted will be set. If the field is not filled in, the boundary of the used area is taken. | Numeric | No | |
Start cell row | String of the initial cell (beginning of the range) from which the area to be deleted will be set. | Numeric | No | |
End cell column name | The column name of the end cell (end of range) to which the area to be deleted will be set. If the field is not filled in, the value from the "End cell column index" field is taken. | String | No | |
End cell column index | The column index of the end cell (end of range) to which the area to be deleted will be set. If the field is not filled in, the boundary of the area to be used is taken. | Numeric | No | |
End cell row | The end cell string (end of range) from which the area to be deleted will be set. | Numeric | No |
Special conditions of use
The "R1C1" reference style is not supported.
Example of use
Task
There is an Excel document with a table:
Need to clear area 3 and 4 rows for Berlin and Vatican city.
Solution
Use the actions "Open", "Clear range", "Save".
Implementation
- Assemble a robot scheme consisting of actions:
- Customize the parameters of the "Open" action. In the "Path to file" field, specify the path to the required Excel file. Check the Visible = true checkbox to display robot actions on the screen.
- Customize parameters of the "Clear range" action. In the "Context" field specify the context of the opened document, specify the range from A3 to B4 in the corresponding fields.
- 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.
Result
The program robot completed successfully.
The target range is cleared.