O
Oscar
In order to close MS Word after some automation routines I use the following
code
On Error Resume Next
objword.ActiveDocument.Close savechanges:=0
On Error Resume Next
objword.Quit
On Error Resume Next
Set objword = Nothing
While this has worked for older versions of Word, it doesn't work for Word
200(2) as I can see that the process remains in the tasklist of the Windows
task manager. What is a better way to force a Word document and the Word
application to close ?
regards,
Oscar
code
On Error Resume Next
objword.ActiveDocument.Close savechanges:=0
On Error Resume Next
objword.Quit
On Error Resume Next
Set objword = Nothing
While this has worked for older versions of Word, it doesn't work for Word
200(2) as I can see that the process remains in the tasklist of the Windows
task manager. What is a better way to force a Word document and the Word
application to close ?
regards,
Oscar