Perform function automatically upon opening Word document

P

PaddyMac

I am using the following code to try to get a message box to appear
automatically upon opening a Word document.

I have written it into the "ThisDocument" folder.

Sub ThisDocument_Open()

MsgBox "This file is now open"

End Sub

Any ideas

Many thanks

PaddyMac
 
J

John... Visio MVP

PaddyMac said:
I am using the following code to try to get a message box to appear
automatically upon opening a Word document.

I have written it into the "ThisDocument" folder.

Sub ThisDocument_Open()

MsgBox "This file is now open"

End Sub

Any ideas

Many thanks

PaddyMac


Try AutoExec
http://support.microsoft.com/kb/286310/

John... Visio MVP
 

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