If you modify your code to populate custom document properties (one set for the primary borrower and one set each for the maximum # of secondary borrowers) with one instance each of your variables, you can use however many DOCPROPERTY fields in the document you need to replicate the info wherever you a given variable to appear. Supplemented with IF field coding, the document content can likewise be varied, all via a simple .Fields.Update directive.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|