1 Open your favorite text editor. In our case we are going to use Notepad++
2 Copy the VBScript code from below.
3 Paste the code in the newly created file.
4 Save the file with a ".vbs" extension.
5 Run the script file by double-clicking on it or via the CMD console.
6 That's it!
Advertisement
Code
' This script creates a blank MS Word document.Sub createBlankWordDocument()
' Set variablesDim appWord
' Create new word application objectSet appWord = Wscript.CreateObject("Word.Application")
' Set it to be visible
appWord.Visible = True ' Add a new document
appWord.Documents.Add
' Release the word application objectSet appWord = Nothing
EndSub' Run the procedureCall createBlankWordDocument()