Loop through pages and look for tags/sequences?

M

ML

Is there a way to loop through al pages in a document and in doing so check
for embedded tags on that page and in turn set the text in the header/footer
based on what was found?

I need to be able to check a page for a security marker, which is just a
text marker with an underlying sequence field and based on what is on that
page set a security marker for the page header and footer.

This needs to be done on a page by page basis.
 
D

Doug Robbins - Word MVP

Headers are linked to Sections, not to Pages, so, except perhaps for the
functionality provided by the StyleRef field, if you can make use of it,
what you are trying to do is probably not possible.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
M

ML

It works now with embedded if statements in the header but I want to make it
more dynamic in the coding.
 
M

ML

Yes, that is what I use now, but I want to do it via VBA as I need to add
more complexity to the checks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top