<script language="vbscript">On Error Resume NextDim wAppSet wApp = CreateObject("Word.Application")
If Err.number > 0 Then
Alert "没法保存为Word文件,请正确安装Word"
else
wApp.Documents.add

wApp.Selection.ParagraphFormat.Alignment = 1 
wApp.Selection.TypeParagraph
wApp.Selection.Font.Bold = True
wApp.Selection.TypeText " 一周工作计划安排"
wApp.Selection.TypeParagraph   

wApp.Selection.ParagraphFormat.LeftIndent = wApp.CentimetersToPoints(0)
wApp.Selection.ParagraphFormat.FirstLineIndent = wApp.CentimetersToPoints(0.72/2*2)

wApp.Selection.TypeParagraph
wApp.Selection.Font.Bold = false
wApp.Selection.ParagraphFormat.Alignment = 0
wApp.Selection.TypeText "星期 一:早上对erp进行修改,以适合门市部的销售模式。  下午:同上"
wApp.Selection.TypeParagraph
   
wApp.Selection.ParagraphFormat.Alignment = 2 
wApp.Selection.TypeParagraph   
wApp.Selection.Font.Bold = false                  
wApp.Selection.TypeText "软件部:甘慧兵"
wApp.Selection.TypeParagraph    wApp.Selection.TypeText "2002.7.27"
wApp.Selection.TypeParagraph  

Dim filename
filename=InputBox("请输入要保存的word文件名及其路径!")
if filename<>"" then
wApp.ActiveDocument.SaveAs(filename)
end if
end if</script>