Results 1 to 2 of 2
  1. #1
    New Lounger
    Join Date
    May 2002
    Location
    Edinburgh, Scotland
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Macro help (Word 97)

    Can you tell me if there is a command I can add to the end of a macro I have created in Word to tell it to close Word down?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Macro help (Word 97)

    If you really want to do this, you can use Application.Quit
    It has three optional arguments, of which SaveChanges is the most important. It can be wdDoNotSaveChanges, wdPromptToSaveChanges or wdSaveChanges.
    For instance, if you want to quit Word without saving any open documents, use

    Application.Quit SaveChanges:=wdDoNotSaveChanges

    If you want to know more, look up Quit in the Word VBA help index.

Posting Permissions

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