S
Steve
I executed the following commands in Word 2000 (SP-3) running on Windows 2000:
...
ActiveDocument.SaveAs _
FileName:= OutputFile, _
FileFormat:= wdFormatDocument
Documents(OutputFile).Close _
SaveChanges:=wdDoNotSaveChanges
If Documents.Count = 0 Then Application.Quit
All open documents appear to have been properly closed, but Word doesn't
exit. This was the only Word document that was open at the time. If I
execute File > Exit, the window closes without displaying any messages. Any
idea what I'm doing wrong?
Thanks in advance for your help.
...
ActiveDocument.SaveAs _
FileName:= OutputFile, _
FileFormat:= wdFormatDocument
Documents(OutputFile).Close _
SaveChanges:=wdDoNotSaveChanges
If Documents.Count = 0 Then Application.Quit
All open documents appear to have been properly closed, but Word doesn't
exit. This was the only Word document that was open at the time. If I
execute File > Exit, the window closes without displaying any messages. Any
idea what I'm doing wrong?
Thanks in advance for your help.