Search

Copy Paste Range

Last Updated: Dec 1, 2020

Articles

Use this function to copy the content from the given source sheet-range and paste it in the destination sheet-range based on the paste-type given as an input.

Syntax

Copy Paste Range (source_sheet, source_range, destination_sheet, destination_cell, paste_type)

Parameters

Input Parameter Name Description
source_sheet Sheet to copy data from
source_range Two cell values (first cell and last cell) separated by ‘:’ in the source sheet to copy the data from
destination_sheet Sheet to paste the data to
destination_cell Two cell values (first cell and last cell) separated by ‘:’ in the destination sheet to paste the data to
paste_type The type of information to be pasted. The paste_type could be any of the following:
  • value: Numbers and values
  • numberformat: Number format of the value displayed in the Excel
  • cellformat: Cell format (font, colour etc)
  • formula: Formula of the cell

':' is used as separator between the cells.

Returns

Return value Description
Table Returns the copied data as a table

Sample

Copy Paste Range (Sheet1, A1:B10, Sheet2, A1:B10, value)

  • Copies the data present in the range ‘A1:B10’ from the ‘Sheet1’ and pastes the value of the copied data to the range ‘A1:B10’ in the ‘Sheet2’.

To view all the Excel functions, click here.

Did you find what you were looking for?