3 replies
by colm_maguire
Hi,
REcord a macro in word - call it what you want but be sure to save it in the document you are using as your template document. (Tools --> Macros --> REcord macros) - record the steps you would take to run the mail merge (simply by doing so the recorder will pick up your actions). click Stop (or tools --> Macros --> Stop recording) after you have run the merge. This will create the macro required to run your merge. Next create another macro called auto_open. Again save it in the document you use as your template. Stop recording immediately after starting. Press Alt + F11 to open the macro editor. Look for Sub auto_open. Make sure there are no lines of text between sub and end sub. Insert a blank line then type the name of your first macro exacly as it is typed in the editing window (eg if you see Sub Macro1, then you type Macro1)
Save the file and close the editor. You have created an auto run macro which will run when you open the Word doc (assuming you click Yes to enable macros) - this macro will then start your first macro which will carry out the steps to run the mail merge.
HTH
by bovid4585
by bovid4585
This discussion is closed to new replies.
Trending Software posts
Sort by Trending