约会项目触发器 [英] Appointment item trigger

查看:72
本文介绍了约会项目触发器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用VBA每次约会时都显示一个消息框。我知道有一个提醒事件,在提醒之前显示,但我没有提醒我的约会,我也无法向他们添加提醒,因为约会
与其他日历软件同步。我可以在约会开始时基本上需要一个触发器,这可能吗?

I am trying to show a message box every time an appointment starts, using VBA. I know there is an event for reminders, beforeReminderShow, but I dont have reminders on my appointments and I am not able to add reminders to them either since the appointments are synced with an other calender software. I basically need a trigger when an appointment starts, is that possible?

推荐答案

Hello Dane,

Hello Dane,

您可以使用
MailItem类的ReminderSet
属性,允许设置  布尔     True  如果已为此项目设置
a提醒。在这种情况下,
BeforeReminderShow
事件被触发
  提醒 将显示  对话框。这是处理约会项目和显示自定义
UI(您自己的表单/消息框给用户)的正确方法。

You can use the ReminderSet property of the MailItem class which allows to set a Boolean value that is True if a reminder has been set for this item. In that case the BeforeReminderShow event is fired before the Reminder dialog box is displayed. That is the right way for handling appointment items and showing a custom UI (your own form/message box to a user).

此外,您可以保留自己的约会项目列表(ID和开始时间),并在指定时间显示一个消息框。但在这种情况下,您应该监控约会项目的任何变化。这不是一个好主意。

Also you can keep your own list of appointment items (IDs and start time) and shown a message box at the specified time. But in that case you should monitor any changes in appointment items. That's not a good idea.


这篇关于约会项目触发器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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