hot to disable prompt to save?

C

chefk

I have a document that I am calling in printpreview mode, I removed al
save menu options as I dont want them to be able to save. When yo
close the document however, the default "Do you wish to save" appears
How do I disable this with VBA? I am using Word 2003.

I should add that this document is the resultant document from a mai
merge. Since it is new it is considered 'dirty'. I do not want to sav
it at all, it is for preview only.

TIA

Chef
 
P

Peter Hewett

Hi Chefk

Somewhere you need to add the following code:

ActiveDocument.Saved = True

This tells Word that the document has already been saved. Word only prompts
you to save a document if the document has been changed since it was last
saved.

HTH + Cheers - Peter
 

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