A
Andy Fish
Hi,
I have an application where I want to be able to find and/or replace text
wherever it appears in a Word document (including in headers, footnotes
etc). This is a fairly common problem and a bit of research has led me to
this page:
http://word.mvps.org/FAQs/Customization/ReplaceAnywhere.htm
which I believe to be the current state of the art.
However, this solution will not find text within a text box which is itself
within a header or footer (there may be other limitations as well but this
is the one I specifically came across).
Does anyone know of an algorithm for search and replace which will even find
text in textboxes within headers and footers?
If it cannot be done from VBA or OLE at all, is there any other mechanism I
can use to effect this?
TIA
Andy
I have an application where I want to be able to find and/or replace text
wherever it appears in a Word document (including in headers, footnotes
etc). This is a fairly common problem and a bit of research has led me to
this page:
http://word.mvps.org/FAQs/Customization/ReplaceAnywhere.htm
which I believe to be the current state of the art.
However, this solution will not find text within a text box which is itself
within a header or footer (there may be other limitations as well but this
is the one I specifically came across).
Does anyone know of an algorithm for search and replace which will even find
text in textboxes within headers and footers?
If it cannot be done from VBA or OLE at all, is there any other mechanism I
can use to effect this?
TIA
Andy