Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Set cell color Version 10 (Net)

Группа действийAction group: Excel 

Описание

Действие устанавливает цвет в указанную ячейку.

Иконка действия

Image Removed

Параметры действия

Входные параметры 

  1. Контекст - Контекст действия для работы с Excel-документом.

  2. Столбец ячейки -Столбец ячейки, в котором будет установлен цвет. Например А.

  3. Индекс столбца - Индекс столбца ячейки, в котором будет установлен цвет.

  4. Строка ячейки - Строка ячейки, в которой будет установлен цвет.. Например: 2.

  5. RGB код- Rgb код цвета в формате «{значение для канала R}, {значение для канала G}, {значение для канала B}». Пример: 100,150,200. Применяется при выбранной опции „Пользовательский“ в поле „Цвет“.

  6. Цвет - Цвет, который будет установлен в выбранной ячейке. Например: Коричневый.

Настройки

...

Свойство

...

Описание

...

Тип

...

Пример заполнения

...

Обязательность заполнения поля

...

Параметры

...

Контекст

...

Контекст действия для работы с Excel-документом

...

Robin.Excel

...

Контекст excel

...

Да

...

Столбец ячейки

...

Столбец ячейки, в котором будет установлен цвет.

...

Robin.String

...

Нет

...

Индекс столбца

...

Индекс столбца ячейки, в котором будет установлен цвет.

...

Robin.Numeric

...

Нет

...

Строка ячейки

...

Строка ячейки, в которой будет установлен цвет.

...

Robin.Numeric

...

Да

...

RGB код

...

Rgb код цвета в формате «{значение для канала R}, {значение для канала G}, {значение для канала B}». Пример: 134,108,242. Применяется при выбранной опции „Пользовательский“ в поле „Цвет“

...

Robin.String

...

Нет

...

Description

The action sets the color to the specified cell.

Action icon

Image Added

Action parameters

Input parameters 

  1. Context - The action context for working with an Excel document.
  2. Column of the cell - Column of the cell where the color will be set. For example A.
  3. Column index - Column index of the cell column in which the color will be set.
  4. Row of the cell - The row of the cell in which the color will be set.... For example: 2.
  5. RGB code - Rgb color code in the format "{value for channel R}, {value for channel G}, {value for channel B}". Example: 100,150,200. Applies when the "Custom" option in the Color field is selected.
  6. Color - The color to be set in the selected cell. Example: Brown.

Settings

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

Column of the cell

The column of the cell in which the color will be set

String


No

Column index

The index of the cell column in which the color will be set

Numeric


No

Row of the cell

Cell row in which the color will be set

Numeric


Yes

RGB code

RGB color code in the format "{value for channel R}, {value for channel G}, {value for channel B}". Example: 134,108,242. Applies when the "Custom" option in the "Color" field is selected

String


No

Color

The color to be set in the selected cell

String


Yes

Special conditions of use  

If you select "No color" in the "Color" field, the fill value in the cell will become "no fill". When selecting "Custom", the "RGB code" field must be filled in, which must contain the rgb color code in the format " {value for channel R},{value for channel G},{value for channel B}". Example: 134,108,242

Example of use:

Task

There is an empty Excel document. Test.xlsx

It is necessary to change the color of the cell to the available colors, as well as to check the possibility of using RGB - code and set any color for the cell using it. 

Solution

Use the actions "Open

...

Цвет

...

Цвет, который будет установлен в выбранной ячейке.

...

Robin.String

...

Да

Особые условия использования 

При выборе в поле "Цвет" значение "Нет цвета" в ячейке значение заливки станет "без заливки". При выборе значения "пользовательский" обязательно должно быть заполнено поле "RGB код", в котором должен быть указан rgb код цвета в формате " {значение для канала R},{значение для канала G},{значение для канала B}". Пример: 134,108,242

Пример использования:

Задача

Существует пустой Excel - документ. Test.xlsx

Необходимо поменять цвет ячейки на доступные цвета, а также проверить возможность использования RGB - кода и задать с помощью него любой цвет для ячейки. 

Решение

Воспользоваться действиями "Открыть", "Set cell color", "СохранитьSave". 

Реализация

Implementation

  1. Assemble a robot scheme consisting of actionsСобрать схему робота, состоящую из действий

  2. Настроить параметры для действия "Открыть"Set the parameters for the "Open" action

  3. Настроить параметры для действия Set the parameters for the "Set cell color" action 1.

  4. Настроить параметры для действия Set the parameters for the "Set cell color" action 2.

  5. Настроить параметры для действия Set the parameters for the "Save" action

  6. Запустить робота по кнопке "Старт" в верхней панели.

Результат

Программный робот отработал успешно.

Image Removed

  1. Launch the robot using the "Start" button in the top panel.

Result

The program robot completed successfully.

Image Added

The selected color has been successfully applied to the cellВыбранный цвет успешно применен в ячейке