OL2002: VBA Code Does Not Run, or Causes Security Warning to Appear

Article translations Article translations
Article ID: 292176 - View products that this article applies to.
This article was previously published under Q292176
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

Symptoms

Code that you created in Microsoft Visual Basic for Applications does not run, or you receive the following warning when you start Outlook:
ThisOutlookSession contains Macros. Macros may contain viruses. It is always safe to disable macros, but if the macros are legitimate, you might lose some functionality.

Cause

Your macro security settings are set to Medium or High.

Resolution

Either set your macro security settings to Low, or digitally sign your Visual Basic for Applications project so that it is considered trusted. To change your security setting, click the Tools menu, click Macro, and then click Security.

Status

This problem is a limitation of how Visual Basic for Applications and its related security features are implemented in Outlook.

More information

Outlook uses the same Visual Basic for Applications security features as the other Microsoft Office programs. In those programs, you can store Visual Basic for Applications code within individual files that can be transferred from computer to computer.

In Outlook, there is only one Visual Basic for Applications project that is not designed to be transferred to other computers. Because Outlook uses the same macro security features as the other Office applications, the same security architecture is applied to Outlook, even though you cannot receive macros without creating them yourself.

NOTE: In Outlook, various windows, errors, warnings, and Help topics mention the term "documents." This also is a side-effect of Outlook using the same Visual Basic for Applications and security features as the other Office programs. These references typically do not apply to Outlook.

For additional information about how Visual Basic for Application is implemented in Outlook, click the article number below to view the article in the Microsoft Knowledge Base:
290779 OL2002: Managing and Distributing Outlook VBA Projects

References

For additional information about available resources and answersto commonly asked questions about Microsoft Outlook solutions, click the article number below to view the article in the Microsoft Knowledge Base:
287530 OL2002: Questions About Custom Forms and Outlook Solutions
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Properties

Article ID: 292176 - Last Review: October 25, 2013 - Revision: 1.0
Applies to
  • Microsoft Outlook 2002 Standard Edition
Keywords: 
kbnosurvey kbarchive kbprb KB292176

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