RecurrencePattern.RecurrenceType プロパティ (Outlook)

定期的なパターンの繰り返しの周期を示す OlRecurrenceType クラスの定数を設定します。 値の取得と設定が可能です。

構文

expression。 RecurrenceType

式RecurrencePattern オブジェクトを表す変数。

注釈

RecurrencePattern オブジェクトの他のプロパティを設定する前に、 RecurrenceType プロパティを設定する必要があります。 RecurrencePattern プロパティを後で設定することは、次の表に示すように、 RecurrenceType の値とは異なります。

OlRecurrenceType 有効な RecurrencePattern プロパティ
olRecursWeekly DayOfWeekMask 、 期間 、 終了時刻 、 間隔 、 noenddate プロパティ 、 出現する 、 PatternStartDate 、 年 、 開始時刻
olRecursMonthly DayOfMonth 、 Duration 、 EndTime 、 Interval 、 NoEndDate 、 Occurrences 、 PatternStartDate 、 PatternEndDate 、 StartTime
olRecursMonthNth DayOfWeekMask 、 Duration 、 EndTime 、 Interval 、 Instance 、 NoEndDate 、 Occurrences 、 PatternStartDate 、 PatternEndDate 、 StartTime
olRecursYearly DayOfMonth 、 Duration 、 EndTime 、 Interval 、 MonthOfYear 、 NoEndDate 、 Occurrences 、 PatternStartDate 、 PatternEndDate 、 StartTime
olRecursYearNth DayOfWeekMask 、 Duration 、 EndTime 、 Interval 、 Instance 、 NoEndDate 、 Occurrences 、 PatternStartDate 、 PatternEndDate 、 StartTime

例

この Visual Basic for Applications の例は、新しく作成された AppointmentItem の RecurrencePattern オブジェクトを取得するのに GetRecurrencePattern を使用します。 プロパティ RecurrenceType、 DayOfWeekMask、 MonthOfYear、 Instance、 Occurrences、 StartTime、 EndTime、 および Subject が設定され、予定が保存され、「2007 年 6 月 1 日から 2016 年 6 月 6 日までの 6 月の第 1 月曜日の午後 2:00 から午後 5:00 まで発生します」というパターンで表示されます。

Sub RecurringYearNth() 
 
 Dim oAppt As AppointmentItem 
 
 Dim oPattern As RecurrencePattern 
 
 Set oAppt = Application.CreateItem(olAppointmentItem) 
 
 Set oPattern = oAppt.GetRecurrencePattern 
 
 With oPattern 
 
 .RecurrenceType = olRecursYearNth 
 
 .DayOfWeekMask = olMonday 
 
 .MonthOfYear = 6 
 
 .Instance = 1 
 
 .Occurrences = 10 
 
 .Duration = 180 
 
 .PatternStartDate = #6/1/2007# 
 
 .StartTime = #2:00:00 PM# 
 
 .EndTime = #5:00:00 PM# 
 
 End With 
 
 oAppt.Subject = "Recurring YearNth Appointment" 
 
 oAppt.Save 
 
 oAppt.Display 
 
End Sub

関連項目

RecurrencePattern オブジェクト

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。