Article ID: 290663 - Last Review: April 24, 2006 - Revision: 4.4 Office Outlook 2003 or Outlook 2002 does not run VBScript code when you open an itemThis article was previously published under Q290663 INTRODUCTIONThis article describes why Microsoft Office Outlook 2003 or Outlook 2002 does not run Visual Basic Scripting Edition (VBScript) code in a custom form when you open an item. MORE INFORMATIONBy default, Outlook disables VBScript code in a custom form if the item is from an unknown source. This methodology makes sure that unsafe VBScript code cannot run on your computer without your explicit approval. Earlier versions of Outlook may have displayed a warning message that asked you whether you wanted to enable or disable VBScript macros in a form when you opened an item. Outlook determined whether to display this warning message based on two factors: the form design for the item and where the script and the accompanying form definition were actually stored. The current behavior uses the same factors to determine whether VBScript code in a custom form will run:
If you are using a "non-routed" form, such as a contact form or a post form, you typically publish the form to the folder that stores the items that are based on the form. For example, if you create a custom contact form that you use to store shared contacts in an Exchange public folder, you publish that form in that Exchange public folder. One exception to this rule may occur if you use the same custom form in many folders. In this case, you may want to publish the form to the Organizational Forms Library. Then, you have only one copy of the form to maintain. For additional information about deciding where to publish a form, click the following article number to view the article in the Microsoft Knowledge Base: 290802
(http://support.microsoft.com/kb/290802/
)
How to determine where to publish a custom Outlook form
Even if a form has been published to a forms library and the forms designer did not enable the Send form definition with item property on the form, the form definition may have been unexpectedly stored in the item.
For additional information about form definitions and how they can be stored in items, click the following article number to view the article in the Microsoft Knowledge Base:
290657
(http://support.microsoft.com/kb/290657/
)
Description of form definitions and one-off forms in Outlook 2002
Note If you are in a Microsoft Exchange environment, custom security settings can be implemented so that Outlook prompts users whether to enable or to disable VBScript code in unpublished forms. This more lenient option changes Outlook back to the functionality that was established before the release of the Outlook e-mail security update for Outlook 2000 and Outlook 98. These custom settings have to be configured by an Exchange administrator.
For additional information about how to configure these custom settings and security features for Outlook, click the following article numbers to view the articles in the Microsoft Knowledge Base:
290499
(http://support.microsoft.com/kb/290499/
)
Administrator information about e-mail security features
290500
(http://support.microsoft.com/kb/290500/
)
Description of the developer-related e-mail security features in Outlook 2002
REFERENCES
For additional information about available resources and answers to frequently asked questions about Outlook solutions, click the following article number to view the article in the Microsoft Knowledge Base:
287530
(http://support.microsoft.com/kb/287530/
)
Frequently asked questions about custom forms and Outlook solutions
| Article Translations
|
Back to the top
