Microsoft KB Archive/892784

= It takes longer than expected to run a VBA macro that finds and replaces text in Word 2007 or in Word 2003 =

Article ID: 892784

Article Last Modified on 1/30/2007

-

APPLIES TO


 * Microsoft Office Word 2003
 * Microsoft Office Word 2007

-



SYMPTOMS
When you run a Visual Basic for Applications (VBA) macro that finds and replaces text, the macro takes longer than expected to finish in Microsoft Office Word 2007 or in Microsoft Office Word 2003. The macro takes longer than expected to finish in Word 2007 or in Word 2003 when compared with the time that is required for the macro to finish in earlier versions of Microsoft Word.



CAUSE
This issue may occur if the document contains information in a header or a footer.



MORE INFORMATION
Word 2007 and Word 2003 make many more calls to the find-and-replace functions than earlier versions of Word. Therefore, it may take longer to programmatically finish a find-and-replace operation in Word 2003 depending on the contents of the document.

Additional query words: word2003 wd2003 wd2k3 WD2007

Keywords: kbprogramming kbautomation kbtshoot kbprb KB892784

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.