Find Replace for Word in Header, Footer, Body (VB.NET)

J

J. Clark

I need to be able to select the area when doing a find and replace using the
Word Interop library. I have the find and replace working, but I need to
know how to search the different areas: header, footer, body.
 
T

Tom

In Word 2003 Find gives an option of marking all entries in the Feader/Footer
and tells you have many it finds. When I try to Replace these, I get
inconsistent results i.e. sometimes it works, sometimes it only changes one
instance.
Should it be able to do this and if so how do I it.
(Life's too short to learn VBA.)
Doug Robbins - Word MVP said:
The following article shows how you would do it with VBA.

"Using a macro to replace text where ever it appears in a document including
Headers, Footers, Textboxes, etc." at:

http://www.word.mvps.org/FAQs/MacrosVBA/FindReplaceAllWithVBA.htm


--
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
 
D

Doug Robbins - Word MVP

Life's too short to do everything manually.

--
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

Tom said:
In Word 2003 Find gives an option of marking all entries in the
Feader/Footer
and tells you have many it finds. When I try to Replace these, I get
inconsistent results i.e. sometimes it works, sometimes it only changes
one
instance.
Should it be able to do this and if so how do I it.
(Life's too short to learn VBA.)
 

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