How to force Word to open a document with only-read status ?

O

Oscar

thanks Jezebel,

can I also force Word within the Word editor (so not in VBA) not to display
the verification message 'Should this document be saved ....'in case one
hits the windows close button to close the document?

objWord.displayalerts =wdAlertsNone doesn't work.

Oscar
 
J

Jezebel

Not directly. You can intercept any Word command by writing a macro with the
same name (eg FileSave, FileSaveAs, etc): your macro will run in place of
the built-in command. You can also trap the DocumentBeforeClose event.
 

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