set objword=createobject("word.application")
objword.document.add
objword.selection.typetext "hi hello"
objword.activedocument.saveas"C:\Test.doc"
objword.document.add
objword.selection.typetext "hi hello"
objword.activedocument.saveas"C:\Test.doc"
No comments:
Post a Comment