Paste range from clipboard Version 13 (Net)

Action group: Excel 


Description

The action inserts a range of cells from the clipboard.

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 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:

 

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:


  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. 


  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.



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


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


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

Result  

The program robot completed successfully.

The table is copied and pasted starting in cell A7. 

  • Нет меток