AutoOpen Macro

J

Joyce

How do I program a macro in a specific word doc so that when you open the
doc, a message appears in a dialog box, e.g. "This document is a historical
document. For the most recent version of this document, see http:// . . . "

Thanks
 
J

Jay Freedman

Joyce said:
How do I program a macro in a specific word doc so that when you open
the doc, a message appears in a dialog box, e.g. "This document is a
historical document. For the most recent version of this document,
see http:// . . . "

Thanks

Hi Joyce,

While you *can* insert a macro named AutoOpen in the document and use the
MsgBox statement to display the message, whether any given user will see the
message depends on their setting of the macro security level in Tools >
Macro > Security. If the level is set to High, the macro won't run at all.
There may or may not be a notification that macros are disabled. I wouldn't
trust this mechanism to convey the message.

Is there a reason you can't put the information directly in the body or
header of the old document when it's superseded by a new version?

Alternatively, every document can carry a notice that paper copies are not
guaranteed to be current, and point to the server location that always
contains the controlled copy.
 

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