The following macro will print the current document, close it without saving
and then quit Word.
Sub PrintAndClose
ActiveDocument.Printout Background:=False
ActiveDocument.Close SaveChanges:=wdDoNotSaveChanges
Application.Quit
End Sub
--
Regards
Jonathan West - Word MVP
MultiLinker - Automated generation of hyperlinks in Word
Conversion to PDF & HTML http://www.multilinker.com
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.