Shapes.Paste method (Publisher)

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.

With ActiveDocument 
 .Pages(1).Shapes(1).Copy 
 .Pages(2).Shapes.Paste 
End With

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.