这个问题涉及到VBA编程
我给个例子给你看
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="VBScript">
function create()
set w=createobject("word.Application")
set s=createobject("OWC.Chart")
w.application.visible=true
w.documents.add
w.caption="试卷分析结果"
' w.Application.ActiveDocument.Paragraphs.Add.Range.InsertBefore("转换后的表格")
'w.Application.ActiveDocument.Paragraphs.Add.Range.InsertBefore("")
' w.Application.ActiveDocument.Paragraphs.Add.Range.InsertBefore("")
end function
</script>
</head>