Word macro in normal.dot

L

Louisiana Paul

I created a message box macro (using VB Editor) to run upon opening a file.
I would like it to run only when I open the document I created it in.
Instead, it appears connected to normal.dot and runs in every document I
open. How do I restrict its application? Thank you. P.S. I know no VB, I
just used the drop downs to create the macro.
 
G

Greg Maxey

Open the document you want the code to effect. Press Alt+F11 to open the vb
editor. Press CTRL+r to ensure the project explorer is open.

Copy and cut the code from the Normal project to the Project(whatevery your
document is called).
 

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