Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keep a word 97 doc from asking "Do you want to save changes"

Status
Not open for further replies.

Jimreaper

MIS
May 22, 2001
21
US

Is there a way to keep the message "Do you want to save changes" from showing when a user exits the word 97 doc file. I would like the file to close when selected without saving changes.

Can a module of some sort be added to the file?

Thanks
JIM
 
Think if you put an activedocument.save will save the current version silently, and when you exit it will not prompt. If not try application.displayalerts = false


HTH
 
Double click the 'ThisDocument' node in the project explorer
Add following code to 'ThisDocument' window.

Private Sub Document_Close()
ThisDocument.Saved = True
End Sub

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top