PDA

View Full Version : Code to close the Word Application after Macro is run



AnalystGuy
01-13-2016, 02:54 PM
My macro runs and save a PDF version in a specified folder. I want the Word application to close after the macro is run.


ActiveDocument.Close SaveChanges:=wdDoNotSaveChanges


I have the code above for closing the Document just an fyi but then I want the Word application to close as well.

gmaxey
01-13-2016, 06:49 PM
Application.Quit