PasteOptions

PasteOptions class

Represents the paste special options.

class PasteOptions;

Constructors

NameDescription
constructor()Default Constructor.

Properties

PropertyTypeDescription
pasteTypePasteTypeThe paste special type.
shiftFormulasOfShapesbooleanIndicates whether to shift formulas of the shapes when copying ranges.
skipBlanksbooleanIndicates whether skips blank cells.
keepOldTablesbooleanKeeps the tables in the destination range.
onlyVisibleCellsbooleanTrue means only copying visible cells.
transposebooleanTrue to transpose rows and columns when the range is pasted. The default value is False.
operationTypePasteOperationTypeGets and sets the operation type when pasting range.
ignoreLinksToOriginalFilebooleanIngore links to the original file.

constructor()

Default Constructor.

constructor();

pasteType

The paste special type.

pasteType : PasteType;

shiftFormulasOfShapes

Indicates whether to shift formulas of the shapes when copying ranges.

shiftFormulasOfShapes : boolean;

skipBlanks

Indicates whether skips blank cells.

skipBlanks : boolean;

keepOldTables

Keeps the tables in the destination range.

keepOldTables : boolean;

onlyVisibleCells

True means only copying visible cells.

onlyVisibleCells : boolean;

transpose

True to transpose rows and columns when the range is pasted. The default value is False.

transpose : boolean;

operationType

Gets and sets the operation type when pasting range.

operationType : PasteOperationType;

ignoreLinksToOriginalFile

Ingore links to the original file.

ignoreLinksToOriginalFile : boolean;