This article was previously published under Q292176
This article has been archived. It is offered "as is" and will no longer be updated.
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.
Your macro security settings are set to Medium or High.
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.
This problem is a limitation of how Visual Basic for Applications and its related security features are implemented in Outlook.
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
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