Display Message at File Open

S

schad

Hi - Is there an easy, cross-platform way to display a message to the
user when a file is opened. For instance, I want to notify the user
that they have purchased a single user license of the document and
remind them of copyright restrictions. I envision a message popping up
in a window after they click to open the file and before they can begin
navigating through the document.

I run Word 2004 on Mac OS 10.3.8, but need something that will be
compatible with Vs. X and with most PC "recent" versions.

Any help?

Thanks!!
 
J

JE McGimpsey

Hi - Is there an easy, cross-platform way to display a message to the
user when a file is opened. For instance, I want to notify the user
that they have purchased a single user license of the document and
remind them of copyright restrictions. I envision a message popping up
in a window after they click to open the file and before they can begin
navigating through the document.

I run Word 2004 on Mac OS 10.3.8, but need something that will be
compatible with Vs. X and with most PC "recent" versions.

Place this code in your document's ThisDocument code module **:

Private Sub Document_Open()
MsgBox "You've purchased a single user license." & vbNewline & _
"Please observe copyright restrictions."
End Sub

Note that if the user doesn't allow macros, this won't run. There are
all kinds of sophisticated ways to work around this, but it will depend
partly on how much you want to code.


** Choose Tools/Macros/Visual Basic Editor. In the Project Browser
window, select the project with your document name and drill down to the
ThisDocument folder.
 

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