Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FIND AND REPLACE FROM VB IN WORD DOC 1

Status
Not open for further replies.

jadams0173

Technical User
Feb 18, 2005
1,210
I need to search for a string in a word doc and replace it with a different string. The string my occur in the HEADER and FOOTER which also need to be searched. There are different variations of the string. Example:

The Old Name, INC.
The Old Name

I've found some threads that helped me, but they haven't done anything to replace the values in the header and/or footer. The threads are thread329-1113099 and thread222-1150578

The second one talks about reading an XML document so I can have the flexibility of finding the different variations.

The first thread works fine, but not in the header. Can anyone help?
 
In the word VBA help search NextStoryRange

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thank you PHV. That put me on the path to finishing my project.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top