Skip to main content

Save-Document

Command Description

Save a Word document

Command Prototype

Word.Save(objWord)

Parameter Description

ParameterRequiredTypeDefaultDescription
objWordTrueexpressionobjWordWord document object

Demo

/*********************************keep*************** ************************ 
Command prototype:
Word.Save(objWord)
Input parameters:
objWord--Word Document Object
*********************************************************************************/
Dim objWord
objWord = Word.Open('''C:\Users\Administrator\Desktop\Standardization Implementation Notes.docx''',"xw4131221","",true)
Word.SelectRow(objWord,3,6)
Word.SetFontStyleEx(objWord,true,true,1)
Word.Save(objWord)