Share via


Cut Method [Publisher 2003 VBA Language Reference]

Deletes the specified object and places it on the Clipboard.

expression.Cut

expression Required. An expression that returns one of the objects in the Applies To list.

Remarks

Use the 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 shapes one and 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

Applies to | Shape Object | ShapeRange Collection | TextRange Object