Muokkaa

Jaa


Selection.Cut method (Word)

Removes the specified object from the document and moves it to the Clipboard.

Syntax

expression.Cut

expression Required. A variable that represents a Selection object.

Remarks

The contents of the selection are moved to the Clipboard but a collapsed selection remains in the document.

Example

This example deletes the contents of the selection and pastes them into a new document.

If Selection.Type = wdSelectionNormal Then 
 Selection.Cut 
 Documents.Add.Content.Paste 
End If

See also

Selection Object

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.