Skip to main content

Select-All

Command Description

Select all content of a Word document

Command Prototype

Word.SelectAll(objWord)

Parameter Description

ParameterRequiredTypeDefaultDescription
objWordTrueexpressionobjWordWord document object

Demo

/************************************Select all content ************* **************************** 
Command prototype:
Word.SelectAll(objWord)
Input parameters:
objWord--Word Document Object
*********************************************************************************/
Dim objWord , sRet
objWord = Word.Open('''C:\Users\Administrator\Desktop\Standardization Implementation Notes.docx''',"xw4131221","",true)
Word.SelectAll(objWord)