How to edit header/footer

J

Josh Orfanakis

I have a bunch of documents with various date fields in the headers and
footers. I would like to scan for these fields and replace them or
remove them. I have the code which identifies the questionable fields in
the header and footer but I don't see a way to remove them or edit them.

I would like to avoid searching for them in the straight text (from the
range) as the dates or format won't be known.

In case I am way off base here is what I am doing

For each section I get the header and footer. For each header and footer
I look in each type of header footer and get the range for each. In each
range I iterate the fields. If the field is of a certain WdFieldType I
would like to remove it or change the resulting text in the header
footer to the name of the field rather than the meaning of the field.

TIA
JO
 
J

jay

did you solve your problem?
I did this kind of thing using VBA, mostly with code from the MVPs
site.
Answer back if you want any of the code.
Jay
 

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