demonstration script that displays formatted data in a microsoft word document.
复制代码 代码如下:
set objword = createobject(word.application)
objword.visible = true
set objdoc = objword.documents.add()
set objselection = objword.selection
objselection.font.name = arial
objselection.font.size = 18
objselection.typetext network adapter report
objselection.typeparagraph()
objselection.font.size = 14
objselection.typetext & date()
objselection.typeparagraph()