Skip to main content

Paste

Pastes the contents of the clipboard to the current sheet.

Syntax

expression.Paste(destination);

expression - A variable that represents a ApiWorksheet class.

Parameters

NameRequired/OptionalData typeDefaultDescription
destinationOptionalApiRangeThe cell range where the clipboard contents should be pasted. If this argument is omitted, the current selection is used.

Returns

This method doesn't return any data.

Example

Paste clipboard contents onto the active sheet in a spreadsheet.

// How do I paste copied or cut data from the clipboard in a spreadsheet?

// Insert clipboard data into the current worksheet in a spreadsheet.

let worksheet = Api.GetActiveSheet();
worksheet.Paste();