• Clos/ No Save (Word XP)

    Author
    Topic
    #388649

    How do I close a file without saving it…. I’ve done it before, but can’t find my code for it scratch

    ActiveWindow.Close

    Then what?

    Viewing 0 reply threads
    Author
    Replies
    • #683298

      I even tried
      ActiveDocumetn.close

      No Success

      PS… What’s the difference between the two?

      • #683303

        1. If you type a space after ActiveDocument.Close, you’ll see that you can enter several arguments, the first of which is SaveChanges. If you enter False (or, more officially, wdDoNotSaveChanges), the document will not be saved:

        ActiveDocument.Close False

        2. You can open more than one window on the same document (Window | New Window). If so, ActiveWindow.Close will only close one of these windows, the rest (and hence the document) will stay open. If you have only one window on a document, ActiveWindow.Close and ActiveDocument.Close are more or less equivalent.

    Viewing 0 reply threads
    Reply To: Clos/ No Save (Word XP)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: