E
ES
I have some code working perfectly that loops through each "Range in
ActiveDocument.StoryRanges", each "Shape in ActiveDocuments.Shapes", and
each "HeaderFooter in Section.Header" to find the count of MailMergeFields
in a document. The problem is, I now want to limit this search to find
fields on the first page only and not the entire document (if multiple
pages). Therefore, I simply need to wrap this code around code that only
searches if the active page = first page. I'm not sure how to determine the
first page and only search for the fields on the first page.
Thanks,
Enoch
ActiveDocument.StoryRanges", each "Shape in ActiveDocuments.Shapes", and
each "HeaderFooter in Section.Header" to find the count of MailMergeFields
in a document. The problem is, I now want to limit this search to find
fields on the first page only and not the entire document (if multiple
pages). Therefore, I simply need to wrap this code around code that only
searches if the active page = first page. I'm not sure how to determine the
first page and only search for the fields on the first page.
Thanks,
Enoch