vba 如何在 Outlook 2007 中启用 ThisOutlookSession?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5660028/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-11 13:00:50  来源:igfitidea点击:

How to enable ThisOutlookSession in Outlook 2007?

vbaoutlookoutlook-vba

提问by LA_

If I put there any code, it is just not executed (looks like some security settings?). Tried to disable macro verification in the Trust Center - it doesn't help.

如果我放了任何代码,它就不会被执行(看起来像一些安全设置?)。试图在信任中心禁用宏验证 - 它没有帮助。

Code I've tried to use: 1, 2.

我尝试使用的代码:1, 2

回答by JimmyPena

After changing your security settings, restart Outlook.

更改安全设置后,重新启动 Outlook。

http://office.microsoft.com/en-us/help/enable-or-disable-macros-in-office-documents-HA010031071.aspx#BM13

http://office.microsoft.com/en-us/help/enable-or-disable-macros-in-office-documents-HA010031071.aspx#BM13

You'll also want to self-sign your VBA project using the self-cert tool included with Office. After doing so, restart Outlook and you should see a dialog asking you to "trust" the project.

您还需要使用 Office 附带的自认证工具对您的 VBA 项目进行自签名。执行此操作后,重新启动 Outlook,您应该会看到一个对话框,要求您“信任”该项目。

回答by Zitun

Yeah - you need to restart after changing the security settings. In outlook 2013 : File_Options_trust center

是的 - 您需要在更改安全设置后重新启动。在 Outlook 2013 中:File_Options_trust 中心