locked
How to Stop the “Do you want to save…” prompt RRS feed

  • Question

  • Hi,

    I’ve a MS Office Pro Plus 2010 installed on Win 7 Pro 64 bit OS. Here is what happens:

    I open a word document.

    I do not make any changes to the document.

    I save the document as PDF.

    When I try to close the original word document, I get prompted to Do you want to save the document?

    Is there a way to stop this annoying prompt?

    Thanks a bunch,

    Joe Green

    Monday, June 11, 2012 2:51 PM

Answers

  • Hi,

    Open a Word file, then press Alt+F11, in “ThisDocument”, paste the following code:

    Private Sub Document_Close()

    Application.DisplayAlerts = False

       On Error Resume Next

       ActiveDocument.Close

    End Sub

    Then save the file as PDF, close the document, the prompt will not show.

    Note: I only consider the situation about there is no changes in the file. If there is any change in the file, the prompt will show again. And after close the file, open it again, it will show another prompt, just click “Enable Macros” button.


    Jaynet Zhang

    TechNet Community Support

    • Marked as answer by Jaynet Zhang Monday, June 18, 2012 1:58 AM
    Tuesday, June 12, 2012 6:39 AM