Share via


Shapes.Paste Method

Publisher Developer ReferencePublisher Developer Reference

Pastes the shapes or text on the Clipboard into the specified Shapes collection, at the top of the z-order. Each pasted object becomes a member of the specified Shapes collection. If the Clipboard contains a text range, the text will be pasted into a newly created TextFrame shape. Returns a ShapeRange object that represents the pasted objects.

Syntax

expression.Paste

expression   A variable that represents a Shapes object.

Return Value
ShapeRange

Example

This example copies shape one on page one in the active publication to the Clipboard and then pastes it into page two.

Visual Basic for Applications
  With ActiveDocument
    .Pages(1).Shapes(1).Copy
    .Pages(2).Shapes.Paste
End With

See Also