Skip to main content

Paste

Command Description

Perform a Paste operation on the content currently selected in a Word document

Command Prototype

Word.Paste(objWord)

Parameter Description

ParameterRequiredTypeDefaultDescription
objWordTrueexpressionobjWordWord document object

Demo

/************************************Paste**************** ************************ 
Input parameters:
objWord--Word document object
*********************************************************************************/
Dim objWord
objWord = Word.Open('''C:\Users\Administrator\Desktop\Standardization Implementation Notes.docx''',"xw4131221","",true)
Word.SelectRow(objWord,2,2)
Word.Copy(objWord)
Word.SetTextPosition(objWord,"all documents",2)
Word.Paste(objWord)