Set column format Version 9 (.Net) 

Action group: Excel 


Description

The action sets the format of the specified column values.

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextAction context for working with an Excel documentRobin.ExcelExcel contextYes
Column nameName of the column in which the format of the values will be set. If the field is not filled, then the value from the «Column index» field is taken.Robin.String
No
Column indexIndex of the column to which the action will be applied.Robin.Numeric
No
Start cellThe index of the first line from the range in which the format will be setRobin.Numeric
No
End cellThe last line index from the range in which the format will be setRobin.Numeric
No
FormatFormat to be set in the selected columnRobin.String
Yes

Special conditions of use

If the "From"/"To" field value falls outside the area to be used and no "To"/"From" value is specified, the document boundary will be used for the blank parameter.

Example of use

Task

There is an Excel-document. 

Set the format of column D as monetary.

Solution

Use the "Open", "Set column data", "Save", "Close" actions.

Implementation

  1. Assemble a robot scheme with the actions.

2. Set the "Open" action parameters.

3.Set the "Set column format" action parameters.

4. Set the "Save" action parameters.

5. Set the "Close" action parameters.

6. Click "Start" and see the result.

Result

The desired column format is set.

     

  • Нет меток