
Search for text inside shapes (Text boxes)
Hi Guy,
Look up the Stories collection in the helpfile. Or look up the NextStory
method. There you should find some code examples.
Everyone hates this feature but you're right: Word only searches the current
story unless you tell it to check the others. (A document can have up to 11
stories: headers and footers, main body, textboxes, etc., etc.)
--
Bill Coan
Microsoft Word MVP
Neenah WI 54956 USA
http://www.wordmacros.com
. . .
Quote:
> I am truing to write a macro that searches a document for some text (lets
> say 'XX') and replace it with 'YY'.
> The problem is: my document got text boxes and those are skipped.
> The normal search & replace works but wen recorded as a macro it doesn't.
> Any help will be greatly appreciated.