Results 1 to 4 of 4
  1. #1
    3 Star Lounger
    Join Date
    Jul 2002
    Location
    Edison, New Jersey, USA
    Posts
    215
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Clos/ No Save (Word XP)

    How do I close a file without saving it.... I've done it before, but can't find my code for it <img src=/S/scratch.gif border=0 alt=scratch width=25 height=29>

    ActiveWindow.Close

    Then what?

  2. #2
    3 Star Lounger
    Join Date
    Jul 2002
    Location
    Edison, New Jersey, USA
    Posts
    215
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Re: Clos/ No Save (Word XP)

    I even tried
    ActiveDocumetn.close

    No Success
    [img]/forums/images/smilies/sad.gif[/img]
    PS... What's the difference between the two?

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

    Re: Clos/ No Save (Word XP)

    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.

  4. #4
    3 Star Lounger
    Join Date
    Jul 2002
    Location
    Edison, New Jersey, USA
    Posts
    215
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Re: Clos/ No Save (Word XP)

    You did it again!.... and just in the nick of time [img]/forums/images/smilies/smile.gif[/img] THANKS!

Posting Permissions

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