Search for text inside shapes (Text boxes) 
Author Message
 Search for text inside shapes (Text boxes)

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

Any help will be greatly appreciated.



Mon, 29 Jul 2002 03:00:00 GMT  
 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.



Mon, 29 Jul 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Put text inside a circle in a Rich Text Box

2. Scrolling Text inside a text box

3. Text box text on new page text box

4. Searching Text Inside Word Documents

5. List box search based on text box entry...

6. looking for a freeware to personnalize the text inside a text zone

7. Converting text in text boxes to inline text

8. Rich Text Box: Can I remove text and keep multicolored text

9. how to get scrolling text in a text box or like Marquee text

10. Modifying Text Format in use without changing text in entire text box

11. Find/Replace inside Word2000 text boxes

12. Text field prevents correct printing of the shape's text

 

 
Powered by phpBB® Forum Software