Table of contents
TOC
Collapse the table of content
Expand the table of content

Shapes.Paste Method (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

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
© 2018 Microsoft