Link to home
Start Free TrialLog in
Avatar of gar7
gar7

asked on

How do get macro in MS Word to start when document is loaded?

I have written a macro VBA in Microsoft Word. When I open the document that contains the macro, how can I get a macro to run automatically after document has loaded?
ASKER CERTIFIED SOLUTION
Avatar of edwardiii
edwardiii

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of edwardiii
edwardiii

Sorry--I'm used to applying code to all Word docs in my library at once.

In step 1 above, replace "left-hand Project-Normal box expand" with "Project window expand Project(Document1) and ".
In step 3 above, replace "Normal - ThisDocument(Code)" with "Document1 - ThisDocument(Code)".

That will only apply this coding to the current Word document, not every one you open as controlled by Normal.
Avatar of gar7

ASKER

edwardiii - Thabks for the help. You hit it right on the head!!

Glad to have helped:)