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

Article translations Article translations
Article ID: 892784 - View products that this article applies to.
Expand all | Collapse all

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 2010, in Microsoft Office Word 2007, or in Microsoft Office Word 2003. The macro takes longer than expected to finish in Word 2010, Word 2007 and 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 2010, 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, Word 2007 and Word 2010 depending on the contents of the document.

Properties

Article ID: 892784 - Last Review: January 19, 2012 - Revision: 4.0
APPLIES TO
  • Microsoft Office Word 2007
  • Microsoft Word 2010
  • Microsoft Office Word 2003
Keywords: 
kbprogramming kbautomation kbtshoot kbprb KB892784

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com