How prevent user from saving document or closing Word

B

Bill

If I start Word via Automation and load a document for the user to
review and edit, is it possible to prevent the user from saving the
document from Word or closing Word from Word? I would like to force the
user to save the document and close Word from my application so I can
record the date and time the document was last changed.

I would like to do this without writing a Word add-in due to the
difficulty of deploying the add-in to all of the workstations. Any
suggestions on how to approach basic document management will be
welcome.
 
S

Shauna Kelly

Hi Bill

You can trap the relevant commands (eg File > Save etc) as shown at
Intercepting events like Save and Print
http://www.word.mvps.org/FAQs/MacrosVBA/InterceptSavePrint.htm

Or, you can use ODMA (see http://support.microsoft.com/kb/212398 for the
basics).

I'm inclined to think that re-inventing the wheel isn't a good idea: if you
need a document management system, I would recommend buying one off the
shelf. This page lists some vendors of doc management systems:
http://en.wikipedia.org/wiki/EDRMS.

Hope this helps.

Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
 
B

Bill

Thanks. This document management feature has to integrate tightly with
a vertical market application so purchasing a commercial package is not
an option. I will look at the references you provided.
 

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