It takes longer than expected to run a VBA macro that finds and replaces text in Word 2003 (892784)



The information in this article applies to:

  • Microsoft Office Word 2003

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 2003. The macro takes longer than expected to finish 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 2003 makes 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.

Modification Type:MajorLast Reviewed:3/23/2006
Keywords:kbProgramming kbAutomation kbtshoot kbprb KB892784 kbAudEndUser kbAudDeveloper