这个问题的答案是重新排列代码
vsoDoc.close
appvisio.quit
‘put this at the end instead of beginning
Set vsoDoc = Nothing
set AppVisio = nothing
</code>
目前我打开
Visio中
</跨度>
从VBS文件,并做好工作。但是,每次宏结束时,Visio.exe仍然在任务管理器下的“活动进程”中。
问题是,当我多次运行宏,时,我得到多个Visio.exe就坐在那里。
我怎样才能有效地关闭
Visio中
</跨度>
文件(因此终止过程)?
这是我的代码:
Sub MacroExample()
昏暗的AppVisio
设置