Name

range.PasteSpecial([Paste], [Operation], [SkipBlanks], [Transpose])

Synopsis

Inserts the contents of the clipboard to the specified range.

Argument

Settings

Paste

An xlPasteType constant indicating the part of the range to be pasted. The default is xlAll, which pastes all cell values and attributes.

Operation

xlNone (default) replaces the contents of the range; xlAdd adds the pasted values to the range; xlSubtract subtracts the pasted values; xlMultiply multiplies values; xlDivide divides the current values by the pasted ones.

SkipBlanks

True ignores blank cells on the clipboard so existing cells aren’t replaced with blank ones.

Transpose

True transposes rows and columns on the clipboard.

Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.