我有我的朋友的出生日期,在excel中有姓名和道布专栏。我必须在我的outlook日历中导入每年的生日活动提醒。
我尝试使用出生日期作为开始日期和剩余日期。无法设置重复。
谁能帮我实现excel到outlook的重复事件?
发布于 2013-05-06 21:09:21
我不知道你的代码是什么样子,但我在MSDN上找到了适合我的a sample (Outlook2010)。下面的代码创建一个新约会,并将定期设置为每两年:
Option Explicit
Sub CreateTestAppt()
Dim oAppt As AppointmentItem
Dim oPattern As RecurrencePattern
Set oAppt = Application.CreateItem(olAppointmentItem)
Set oPattern = oAppt.GetRecurrencePattern
With oPattern
' Appointment occurs every n-th year (with n indicated by the Interval property)
.RecurrenceType = olRecursYearNth
' Appointment recurs every 2 years (per a RecurrenceType of olRecursYearNth)
.Interval = 2
End With
oAppt.Subject = "Test appointment"
oAppt.Save
oAppt.Display
Set oPattern = Nothing
Set oAppt = Nothing
End Subhttps://stackoverflow.com/questions/16398405
复制相似问题