在 Microsoft Outlook 中创建重复事件

Creating repeating event in Microsoft Outlook

有谁知道如何在 Outlook 中创建一个重复的事件,如果它不是每年的同一天?

我想要一个 "Tuesday in seventh week before Easter" 的活动。

是否可以在任何其他日历中制作并将其移动到 Outlook?

首先,您需要在代码中创建一个新的 AppointmentItem 实例 class。然后您需要设置 ReccurrencePattern object which you can get calling the GetRecurrencePattern method of the AppointmentItem class. If there is no existing recurrence pattern, a new empty RecurrencePattern object is returned. You can read more about that in the How To: Create a new recurring Outlook Appointment item 文章。

如果您是 Outlook VBA 的新手,我建议您从 Getting Started with VBA in Outlook 2010 文章开始。

创建一个每年发生的模式,然后修改每个实例(这将创建一个例外)- RecurrencePattern.GetOccurrence() 将 return 表示重复实例的 AppointmentItem,修改其开始 属性并保存约会。