Skip to content

Latest commit

 

History

History
61 lines (38 loc) · 1.38 KB

Publisher.ShapeRange.Cut.md

File metadata and controls

61 lines (38 loc) · 1.38 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
ShapeRange.Cut method (Publisher)
vbapb10.chm2293777
vbapb10.chm2293777
Publisher.ShapeRange.Cut
961d4646-8318-d2ff-ed98-649583d36115
06/14/2019
medium

ShapeRange.Cut method (Publisher)

Deletes the specified object and places it on the Clipboard.

Syntax

expression.Cut

expression A variable that represents a ShapeRange object.

Remarks

Use the Shapes.Paste method to paste the contents of the Clipboard.

The Copy method can be used on Shape objects, but the Paste method cannot.

Example

This example deletes shape one and shape two from page one of the active publication, places copies of them on the Clipboard, and then pastes the copies onto page two.

With ActiveDocument 
 .Pages(1).Shapes.Range(Array(1, 2)).Cut 
 .Pages(2).Shapes.Paste 
End With

This example deletes shape one on page one of the active publication and places a copy of it on the Clipboard.

ActiveDocument.Pages(1).Shapes(1).Cut

This example deletes the text in shape one on page one of the active publication and places a copy of it on the Clipboard.

ActiveDocument.Pages(1).Shapes(1).TextFrame.TextRange.Cut

[!includeSupport and feedback]