I am converting some old (very old) WordPerfect Mail Merge main documents to Word 2003. In the old WordPerfect files there was a mail merge statement that allowed you to nest forms and nest macros. The nesting was triggered by If or Select Case mail merge code so that different files or macros could be run depending on the field value being merged. Some of the nested forms also triggered nested macros. I want to do the same think in Word 2003.
I am thinking that I can do the following but want to be sure I have the concept right. Can someone verify that my thinking is correct.
In the main mail merge document (not sure if this should be a template or not):
1. I would declare an object variable in a class module to respond to the events
2. Write the specific event procedure.
3. Initialize the object.
4. Use the MailmergeBeforeRecordMerge event to check the values and then decide what macros to run.
If this is correct, I have an addtional question.
The nested forms might trigger other macros or nest other forms. How do I keep the process going.
I am thinking that I can do the following but want to be sure I have the concept right. Can someone verify that my thinking is correct.
In the main mail merge document (not sure if this should be a template or not):
1. I would declare an object variable in a class module to respond to the events
2. Write the specific event procedure.
3. Initialize the object.
4. Use the MailmergeBeforeRecordMerge event to check the values and then decide what macros to run.
If this is correct, I have an addtional question.
The nested forms might trigger other macros or nest other forms. How do I keep the process going.