I found a lot of options using;
Word VBA, how to quit Word.
But this may help;
Sub CloseAll()
'Close all open files and shutdown Word
With Application
.ScreenUpdating = False
'Loop Through open documents
Do Until .Documents.Count = 0
'Close no save
.Documents(1).Close SaveChanges:=wdDoNotSaveChanges
Loop
'Quit Word no save
.Quit SaveChanges:=wdDoNotSaveChanges
End With
End Sub
Mark
Hello,
I'm not finding what I need or not sure of what I really need to look for.
What I am trying to do is, call "winword /mSaveAsHTML sometextfile.txt" from a bat file. I want it to automatically open the text file and do a save as to create an HTML version of the file, then automatically close Word. I tried to record a macro and can get the save as portion, but the close document and exit Word part I'm not sure how to accomplish. Is there a way to do this?
Thanks.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic