Close-Document
Command Description
Close an opened Word document
Command Prototype
Word.Close(objWord,bQuit)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
objWord | True | expression | objWord | Word document object |
bQuit | True | boolean | True | Whether to close the Word process |
Demo
/************************************Close document************** ************************
Input parameters:
objWord--Word document object
bQuit--whether to close the Word process
*********************************************************************************/
Dim objWord
objWord = Word.Open('''C:\Users\Administrator\Desktop\Standardization Implementation Notes.docx''',"xw4131221","",true)
Word.Close(objWord,true)