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

  • Thread starter Thread starter Lane
  • Start date Start date
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.
 
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
 
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

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Back
Top