【问题标题】:Fire New Item Alert window using VBA in Outlook 2007在 Outlook 2007 中使用 VBA 触发新项目警报窗口
【发布时间】:2013-01-08 07:14:12
【问题描述】:

我想阅读电子邮件的前 10 行,然后在满足特定条件时触发新警报窗口。

如何使用 VBA 触发新警报窗口?如果不可能,有没有更好的方法来实现我想要的?

【问题讨论】:

  • 没有人回答我的问题?

标签: vba outlook outlook-2007


【解决方案1】:

一种可能的选择。

从收件箱 (olFolderInbox) http://msdn.microsoft.com/en-us/library/office/ff869609.aspx 的 ItemAdd 代码生成消息框

一个简单条件的例子:

If InStr(Left(Item.Body,1000), "search text here") > 0 then
    MsgBox "You've got mail."
End If

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-03-10
    • 1970-01-01
    • 2017-08-07
    • 1970-01-01
    • 2011-02-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多