G
Gilley
I have looked through and followed (to the best of my
ability) the instructions on the MVP web site regarding
having macros run when a document is opened based on a
specific template.
Let me explain what I need to do:
I need a DOS (yes DOS) based application to:
1. Open Word.
2. Launch a template.
3. Run a mail merge macro.
4. Print the results.
5. Close Word.
I have accomplished 1 and 2 by envoking Word from a
command line using the /t switch to open a new document
based on a specific template.
I have accomplished 3, 4, and 5 in a macro.
The problem is that I can't seem to figure out how to get
3, 4, and 5 to happen automatically when a new document is
opened based on the template.
I have tried using the Document_Open() procedure.
However, I can only get it to work when I open the
template, not when a new document is created based on the
template.
What am I missing?
Thank bunches in advance for your help.
Gilley
ability) the instructions on the MVP web site regarding
having macros run when a document is opened based on a
specific template.
Let me explain what I need to do:
I need a DOS (yes DOS) based application to:
1. Open Word.
2. Launch a template.
3. Run a mail merge macro.
4. Print the results.
5. Close Word.
I have accomplished 1 and 2 by envoking Word from a
command line using the /t switch to open a new document
based on a specific template.
I have accomplished 3, 4, and 5 in a macro.
The problem is that I can't seem to figure out how to get
3, 4, and 5 to happen automatically when a new document is
opened based on the template.
I have tried using the Document_Open() procedure.
However, I can only get it to work when I open the
template, not when a new document is created based on the
template.
What am I missing?
Thank bunches in advance for your help.
Gilley