I want to be able to remove the “Save Prompt” for certain users when closing there documents because the changes should not be saved. I tried the simple macro below with no luck. Any ideas?
Sub AutoClose()
ActiveDocument.Close wdDoNotSaveChanges
End Sub
I worked with this for awhile and the got the following code to work with the AutoClose but not the Document_Close.
Does it make sense that the true value is correct?
Sub AutoClose()
ActiveDocument.Saved = True
End Sub
It looks like "True" is used to not save the cahnges with the saved property.
Example
This example saves the active document if it contains previously unsaved changes.
If ActiveDocument.Saved = False Then ActiveDocument.Save
This example changes the status of the Normal template to unchanged. If changes were made to the Normal template, the changes aren't saved when you quit Word.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.