Consulting

Results 1 to 2 of 2

Thread: Code to close the Word Application after Macro is run

  1. #1

    Code to close the Word Application after Macro is run

    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.

  2. #2
    Microsoft Word MVP 2003-2009 VBAX Guru gmaxey's Avatar
    Joined
    Sep 2005
    Posts
    3,344
    Location
    Application.Quit
    Greg

    Visit my website: http://gregmaxey.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •