How can I reset the File + Print dialog so that it's not set to Print to File, after running code which prints a document to a file?

Article contributed by Ibby

The following resets the dialog without actually printing anything:

  Application.PrintOut _
    Range:=wdPrintRangeOfPages, _
    Pages:="0", _

Click to view Terms of Use page

Click to view Disclaimer page