RecurrencePattern.Interval Property
Outlook Developer Reference |
Returns or sets a Long specifying the number of units of a given recurrence type between occurrences. For example, setting the Interval property to 2 and the RecurrenceType property to Weekly would cause the pattern to occur every second week. Read/write.
Syntax
expression.Interval
expression A variable that represents a RecurrencePattern object.
Remarks
The Interval property must be set before setting PatternEndDate. Also, the Interval property is not valid for yearly recurrence patterns.
Example
This Visual Basic for Applications example uses GetRecurrencePattern to obtain the RecurrencePattern object for the newly-created AppointmentItem. The properties, RecurrenceType , DayOfWeekMask , PatternStartDate , Interval , PatternEndDate , and Subject are set, the appointment is saved and then displayed with the pattern: "Occurs every 3 week(s) on Monday effective 1/21/2003 until 12/21/2004 from 2:00 PM to 5:00 PM."
Visual Basic for Applications |
---|
|
See Also