WD2002: Sample Macro That Uses a Loop to Find Text (306338)
The information in this article applies to:
This article was previously published under Q306338 For a Microsoft Word 2000 version of this article, see 211458.
For a Microsoft Word 97 version of this article, see 170725.
For a Microsoft Word 98 version of this article, see 183643.
SUMMARY
The following sample macro searches for a specified paragraph style in a Microsoft Word 2002 document and adds text to the beginning of each occurrence that it finds.
REFERENCESFor more information about searching text in Word documents, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type find object in the Office Assistant or the Answer Wizard, and then click Search to view the topic. For additional information about how to use the sample code in this article, click the article number below
to view the article in the Microsoft Knowledge Base:
290140 OFFXP: How to Run Sample Code from Knowledge Base Articles
For additional information about getting help with Visual Basic for Applications, click the article number below
to view the article in the Microsoft Knowledge Base:
305326 OFFXP: Programming Resources for Visual Basic for Applications
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode kbhowto kbmacroexample kbProgramming KB306338 |
---|
|