Can I have a Dialog Box pop up when opening a word document?

L

Lane

I have a document that when a person opens it that a dialog box come up to
tell the person to Stop someone is working on this account.
 
D

Doug Robbins - Word MVP

You could put the following macro in the document

Sub AutoOpen()
MsgBox "Stop! Someone is working on this account."
End Sub

However, if the macro security is set to high, the macro will automatically
be deleted and if it is set to medium, the user will be asked if they want
to allow the macro to run.

The other issue is that this would run whenever the document is opened,
whether or not someone else had it opened.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 
G

Graham Mayor

If the document is opened by someone, a lock file is created. If someone
else attempts to open that document, a system message reports that the
document is locked and provides the option to open a read only copy. Only
one person can open a document at a time.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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