Paste Method
TOC
Collapse the table of content
Expand the table of content

Range.Paste Method (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Inserts the contents of the Clipboard at the specified range.

expression .Paste

expression Required. A variable that represents a Range object.

If you don't want to replace the contents of the range, use the Collapse method before using this method.

When you use this method with a Range object, the range expands to include the contents of the Clipboard.

This example copies and pastes the first table in the active document into a new document.

If ActiveDocument.Tables.Count >= 1 Then 
 ActiveDocument.Tables(1).Range.Copy 
 Documents.Add.Content.Paste 
End If

This example copies the selection and pastes it at the end of the document.

If Selection.Type <> wdSelectionIP Then 
 Selection.Copy 
 Set Range2 = ActiveDocument.Content 
 Range2.Collapse Direction:=wdCollapseEnd 
 Range2.Paste 
End If

Concepts

Other resources

Show:
© 2016 Microsoft