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

Ключ

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

...

Paste range from clipboard Version 13 (Net)

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

Описание

Действие вставляет диапазон ячеек из буфера обмена.

Иконка

Image Removed

Параметры

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

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

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

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

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

Настройки 

...

Свойство

...

Описание

...

Тип

...

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

...

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

...

Параметры

...

Контекст

...

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

...

Robin.Excel

...

Контекст excel

...

Да

...

Имя столбца начальной ячейки

...

Имя столбца начальной ячейки, в которую будет вставлен диапазон. Если поле не заполнено, то берется значение из поля «Индекс столбца начальной ячейки».

...

Robin.String

...

Нет

...

Индекс столбца начальной ячейки

...

Индекс столбца начальной ячейки, в которую будет вставлен диапазон. По умолчанию „1“.

...

Robin.Numeric

...

Нет

...

Строка начальной ячейки

...

Строка начальной ячейки,в которую будет вставлен диапазон. По умолчанию „1“.

...

Robin.Numeric

...

Нет

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

  • Действие вставляет текстовые значения, взятые из результатов выполнения действий "Копировать область в буфер" группы Excel, группы Office и группы Базовые действия.
  • Действие вставляет текстовые значения, скопированные в буфер вручную.
  • Действие вставляет текстовые значения, которые могли быть взяты из Excel-документов, браузеров и других файлов.
  • Если значение в буфере является нетекстовым (изображение, файл и т.д.), робот выдает ошибку.
  • Если буфер обмена пуст, действие не меняет Excel-документ. Робот ошибку не выдает. 
  • Если в буфере находится текст, то текст будет вставлен в ячейку с координатами "Столбец начальной ячейки", "Строка начальной ячейки"
  • В случае, когда значение находящееся в буфере скопировано из Excel-документа, вставка такого значения будет производиться как есть, без изменения формата значения.

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

Задача

Существует Excel-документ "Test" с таблицей:

 Image Removed

Необходимо скопировать эту таблицу в буфер и вставить ее же на две строки ниже, начиная с ячейки А7. 

Решение 

Воспользоваться действиями "Открыть", "Копировать область в буфер", "Вставить значения из буфера", "Сохранить". 

Реализация

...

Заполнить параметр для действия "Копировать область в буфер". Остальные поля не заполнять, так как необходимо скопировать таблицу полностью.

...

Description

The action inserts a range of cells from the clipboard.

Icon

Image Added

Parameters

Input parameters  

NameDescription
ContextAction context for working with an Excel document
Start cell column nameThe column name of the initial cell into which the range will be inserted.
Start cell column indexThe column index of the starting cell into which the range will be inserted.
Start cell rowRow of the initial cell into which the range will be inserted.

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

Да

Start cell column name

The column name of the initial cell into which the range will be inserted. 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 into which the range will be inserted. The default is "1".

Numeric


No

Start cell row

The row of the starting cell into which the range will be inserted. The default is "1".

Numeric


No

Special conditions of use

  • The action inserts text values taken from the results of the "Copy range to clipboard" actions in the Excel group, the Office group, and the Basic actions group.
  • The action inserts text values that were copied to the clipboard manually.
  • The action inserts text values that may have been taken from Excel documents, browsers, and other files.
  • If the value in the buffer is a non-text value (image, file, etc.), the robot generates an error.
  • If the clipboard is empty, the action does not change the Excel document. The robot does not generate an error.
  • If there is text in the clipboard, the text will be inserted into the cell with coordinates " Start cell column name", "Start cell row".
  • If the value in the clipboard is copied from an Excel document, it will be inserted as it is, without changing the format of the value.

Example of use

Task

There is an Excel document "Test" with a table:

 Image Added

You need to copy this table to the clipboard and paste it two rows below, starting from cell A7.  

Solution  

Use the actions "Open", "Copy range to clipboard", "Paste range from clipboard", "Save".  

Implementation

  1. Assemble a robot scheme consisting of actions:
    Image Added

  2. Fill in the parameters for the "Open" action. In the "Path to file" field, specify the path to the required Excel file. Check the Open Visible = true checkbox to display robot actions on the screen. 
    Image Added

  3. Fill in the parameter for the "Copy range to clipboard" action. Do not fill in the other fields, as it is necessary to copy the table completely.

    Image Added

  4. Fill in the parameters for the "Paste range from clipboard" action. 
    Image Added

  5. Fill in the parameters for the "Save" action. In the "Context" parameter specify the context of the Excel document. 
    Image Added

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

Result  

The program robot completed successfully.

Image Added

The table is copied and pasted starting in cell A7

...

Результат 

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

Image Removed

Таблица скопирована и вставлена начиная с ячейки А7