Select-All
Command Description
Select all content of a Word document
Command Prototype
Word.SelectAll(objWord)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
objWord | True | expression | objWord | Word 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)