• Turn off ‘Save?’ Prompt upon document close (2003 SP 3)

    Home » Forums » AskWoody support » Productivity software by function » MS Word and word processing help » Turn off ‘Save?’ Prompt upon document close (2003 SP 3)

    Author
    Topic
    #450834

    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?

    Viewing 1 reply thread
    Author
    Replies
    • #1108578

      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.

      • #1108584

        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.

        Public Sub AutoClose()
        ActiveDocument.Saved = True
        End Sub

        • #1108586

          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!

    • #1108636

      I wrote two short macros to help me in closing documents quickly.

      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

      and

      Sub quitter()
          CloseAllTakeNoPrisoners
          Application.Quit
      End Sub
      
    Viewing 1 reply thread
    Reply To: Turn off ‘Save?’ Prompt upon document close (2003 SP 3)

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

    Your information: