Microsoft KB Archive/303037

= PRB: Automating Word or Outlook Fails on Second Attempt =

Article ID: 303037

Article Last Modified on 1/30/2007

-

APPLIES TO


 * Microsoft Office Outlook 2003
 * Microsoft Outlook 2002 Standard Edition
 * Microsoft Outlook 2000 Standard Edition
 * Microsoft Office Word 2003
 * Microsoft Word 2002 Standard Edition
 * Microsoft Word 2000 Standard Edition

-



This article was previously published under Q303037



Important This article contains information that shows you how to help lower security settings or how to turn off security features on a computer. You can make these changes to work around a specific problem. Before you make these changes, we recommend that you evaluate the risks that are associated with implementing this workaround in your particular environment. If you implement this workaround, take any appropriate additional steps to help protect your system.



SYMPTOMS
A custom solution that uses a scripting language to automate Outlook or Word may cause a fatal error in the application that is hosting the script.



CAUSE
This problem occurs when both of the following conditions are met:  Symantec's Nortion AntiVirus 2001 is installed, and its Script Blocking feature is enabled. -and-

  The code attempts to automate Outlook or Word a second time. For example, if the following line of code is called twice, the error occurs: Set x = CreateObject(&quot;Word.Applicaton&quot;) 



RESOLUTION
Warning This workaround may make your computer or your network more vulnerable to attack by malicious users or by malicious software such as viruses. We do not recommend this workaround but are providing this information so that you can implement this workaround at your own discretion. Use this workaround at your own risk.

Note An antivirus program is designed to help protect your computer from viruses. You must not download or open files from sources that you do not trust, visit Web sites that you do not trust, or open e-mail attachments when your antivirus program is disabled. For additional information about computer viruses, click the following article number to view the article in the Microsoft Knowledge Base:

129972Computer viruses: description, prevention, and recovery

To work around this problem, disable the Script Blocking feature in Norton AntiVirus. For more information on disabling this feature, refer to the Norton AntiVirus documentation. The third-party products that are discussed in this article are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.



MORE INFORMATION
This problem does not occur with Microsoft Excel or Microsoft PowerPoint.

