N
Neil Dittmar
Hello All,
I'm trying to determine the number of merge fields present
in a header or footer of a Word document. Seems that the
Word 2003 Object doesn't pick them up with the following
line of code:
wdApp.Documents(1).MailMerge.Fields.Count
Even if there are mail merge fields in the header or
footer, this still evaluates to 0 if there are none in the
main part of the document. I have tried to determine the
necessary code using macros, but I just can't seem to get
it to work. Any help would be greatly appreciated.
Thanks in advance,
Neil Dittmar
Software Developer
Aurora Information Systems
I'm trying to determine the number of merge fields present
in a header or footer of a Word document. Seems that the
Word 2003 Object doesn't pick them up with the following
line of code:
wdApp.Documents(1).MailMerge.Fields.Count
Even if there are mail merge fields in the header or
footer, this still evaluates to 0 if there are none in the
main part of the document. I have tried to determine the
necessary code using macros, but I just can't seem to get
it to work. Any help would be greatly appreciated.
Thanks in advance,
Neil Dittmar
Software Developer
Aurora Information Systems