Outlook启动时是否可以运行VBA功能? [英] Is it possible to run a VBA function whenever Outlook starts up?

查看:309
本文介绍了Outlook启动时是否可以运行VBA功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望Outlook启动后立即运行VBA功能.这可能吗?如果可以,我该怎么办?我在Google上的搜索失败了.

I would like to have a VBA function run as soon as Outlook starts up. Is this possible and if so, what do I need to do? My searches on Google have failed me.

我不介意会弹出安全警报.

I don't mind that the security alert will pop up.

推荐答案

ThisOutlookSession中使用Application_Startup事件:

Private Sub Application_Startup()
    MsgBox "Foo"
End Sub

这篇关于Outlook启动时是否可以运行VBA功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆