[Outlook] How to get the Range of Recurrence in Event?
Posted on 2003-11-21
Now, I am using VB code to write an Add-in to plug to oultook to get event data . But I don't know exactly How to get the Range of Recurrence???
Below is my code:
Dim myEvent As MYEVENTLib
Dim olEvent As Outlook.AppointmentItem
If olEvent.IsRecurring Then
Set olRecurPattern = olEvent.GetRecurrencePattern
If Not olRecurPattern Is Nothing Then
Set myRecurPattern = myEvent.GetRecurPattern
If olRecurPattern.NoEndDate Then
myRecurPattern.Range = 0 'No End Date
Else If ??? Then
myRecurPattern.Range = 1 'End After
myRecurPattern.Range = 2 'End By
Please help me how to handle it.
Thanks a lot.