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
Свойство | Описание | Тип | Пример заполнения | Обязательность заполнения поля |
Параметры | ||||
Контекст | Контекст действия для работы с Excel-документом | Robin.Excel | Контекст excel | Да |
Имя столбца | Имя столбца, в котором нужно установить формат значений. Если поле не заполнено, то берется значение из поля «Индекс столбца». | Robin.String | Нет | |
Индекс столбца | Индекс столбца, к которому будет применяться действие. | Robin.Numeric | Нет | |
Начальная ячейка | Номер первой строки из диапазона, в котором будет установлен формат | Robin.Numeric | Нет | |
Конечная ячейка | Номер последней строки из диапазона, в котором будет установлен формат | Robin.Numeric | Нет | |
Формат | Формат, который будет установлен в выбранном столбце | Robin.String |
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
- 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.