Macro to avoid prompt to save

P

Paul Moloney

At the moment I use a macro I developed to distill Words docs
to PDF. However, after this is run, Word prompts that the document
should be saved. Since we store documentation in a source control
environment, I would like to remove this prompt. Can I use
VB to make Word "think" that the document doesn't need saving?

Thanks,

P.
 
J

JB

Paul said:
At the moment I use a macro I developed to distill Words docs
to PDF. However, after this is run, Word prompts that the document
should be saved. Since we store documentation in a source control
environment, I would like to remove this prompt. Can I use
VB to make Word "think" that the document doesn't need saving?

Thanks,

P.

Try this

ActiveDocument.saved = true

J
 

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