Save option on close

T

terilad

Hi,

Can someone help me to stop the pop up box if a document has changed and you
hit close it appears with a message box do you want to save changes, I am
looking to stop this pop up, is there a macro to stop this from happening so
the document just closes without asking to save.

Many thanks

Mark
 
J

Jay Freedman

The macro is simply

Sub CloseWithoutSave()
ActiveDocument.Close wdDoNotSaveChanges
Application.Quit
End Sub

which you can assign to a keyboard shortcut or a button.

But don't come whining that you closed a document without saving and now you
want it back -- there won't be anything to recover!

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
T

terilad

Thanks Jay,

Thats exactly what I wanted, I know it seems strange but its for filling in
forms.

Many thanks

Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top