大家快帮我看看这段代码啊!
类模块有myword,mydoc的定义:
窗体代码如下:
for i=1 to 10
Set mydoc = myword.Documents.Open(......)'文档名和I有关!
Set mytable = mydoc.Tables(1)
mydoc.Saved = True 'true代表不保存
mydoc.PrintOut
mydoc.Close
Set mydoc = Nothing
Set myword = Nothing
myword.Quit
next i
现在问题是这样的!每个循环都会在系统后台产生一个winword的进程(按下 Ctrl+Alt+Del 查看), 这样的话最终会导致系统死机!可是我不明白的是为什么我都set nothing 了!怎么还会有winword的进程啊?哪位高手帮忙解答一下哦!