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.
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.
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:
(http://support.microsoft.com/kb/290779/EN-US/ )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:
(http://support.microsoft.com/kb/287530/EN-US/ )OL2002: Questions About Custom Forms and Outlook Solutions
(http://go.microsoft.com/fwlink/?LinkId=151500)for other considerations.