Results 1 to 6 of 6
  1. #1
    2 Star Lounger
    Join Date
    Jan 2008
    Location
    Wheaton, Illinois, USA
    Posts
    102
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Turn off 'Save?' Prompt upon document close (2003 SP 3)

    To quickly close a document, I right-click their taskbar instance and choose Close. How can I turn off the 'Save First?' confirmation question?

    Can I just do this for Word, or would it affect all Office programs?

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

    Re: Turn off 'Save?' Prompt upon document close (2003 SP 3)

    If a document has been modified since it was last saved, Word will always ask you whether you want to save it before closing it. You can create a custom toolbar button and/or keyboard shortcut to close a document without saving it if you want to live dangerously (I wouldn't recommend it), but as far as I know you can't suppress the prompt when you close a document from the Windows taskbar.

  3. #3
    Silver Lounger
    Join Date
    Jul 2001
    Location
    Ottawa, Ontario, Canada
    Posts
    1,609
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Turn off 'Save?' Prompt upon document close (2003 SP 3)

    I cannot state too strongly the caution which Hans offered. However if you are determined to proceed, the following code placed in your Normal template will do the dirty deed.
    <div style="width: 100%; background-color: #FFFFFF;"><code><font color=black><font color=blue>Public</font color=blue> <font color=blue>Sub</font color=blue> AutoClose()
    ActiveDocument.Saved = <font color=blue>True</font color=blue>
    <font color=blue>End</font color=blue> <font color=blue>Sub</font color=blue>

    </font color=black></code></div hiblock>
    Regards
    Don

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

    Re: Turn off 'Save?' Prompt upon document close (2003 SP 3)

    But that would suppress the Save prompt whichever way you close a document, whether from within Word or from the taskbar. That is *far* too dangerous!

  5. #5
    Silver Lounger
    Join Date
    Jul 2001
    Location
    Ottawa, Ontario, Canada
    Posts
    1,609
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Turn off 'Save?' Prompt upon document close (2003 SP 3)

    Fully agreed.
    Regards
    Don

  6. #6
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Turn off 'Save?' Prompt upon document close (2

    I wrote two short macros to help me in closing documents quickly.
    <pre>Public Sub CloseAllTakeNoPrisoners()
    Dim doc As Document
    For Each doc In Application.Documents
    doc.Close savechanges:=wdDoNotSaveChanges
    Next doc
    If Documents.Count > 0 Then
    Documents.Close savechanges:=wdDoNotSaveChanges
    Else
    End If
    End Sub</pre>

    and
    <pre>Sub quitter()
    CloseAllTakeNoPrisoners
    Application.Quit
    End Sub
    </pre>


Posting Permissions

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