从Outlook筛选约会项目 [英] Filtering Appointment items from Outlook
本文介绍了从Outlook筛选约会项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我们如何从Outlook中过滤约会项.
说明
我想在用户发送会议请求时显示消息框.我可以在发送"按钮上触发事件,但是它将为所有邮件项触发,例如新邮件",会议要求"
任何指针都会有所帮助
谢谢
Mathew
Hi All,
How can we filter Appointment items from outlook.
Description
I want to show message box while a user send a meeting request. I am able to fire event on Send button, but it will fire for all the Mailitems like New mail, Meeting request
Any pointer''s will be helpful
Thanks
Mathew
推荐答案
在ItemSend
事件中,检查TypeName(Item)
中的相关字符串并采取相应的措施.例如;
In theItemSend
event, check theTypeName(Item)
for the relevant string and act accordingly. e.g.;
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Select Case TypeName(Item)
Case "MailItem"
MsgBox "You are sending a mail item"
Case "MeetingItem"
MsgBox "You are sending a meeting request"
Case "Else"
MsgBox "You are send a " & TypeName(Item)
End Select
End Sub
我相信您可以在这里解决其余的问题.
如果您只想测试一种类型,请这样做;
I am sure you can work out the rest from here.
If you just want to test for one type just do;
If TypeName(Item)="MeetingItem" then
'Do Whatever
end if
这篇关于从Outlook筛选约会项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文