AppointmentItem.Location プロパティ (Outlook)

予定の特定のオフィスの場所 (たとえば、地またはスイート 123) を表す 文字列 を設定または返します。 値の取得と設定が可能です。

構文

場所

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

注釈

このプロパティは、MAPI プロパティの PidTagOfficeLocation に対応します。

この Visual Basic for Applications の例では、 createitem メソッド を使用して予定を作成し、必須および任意の出席者に会議出席依頼に変換するには、「会議」にミーティングのステータスを設定するのには MeetingStatus を使用します。

Sub ScheduleMeeting() 
 
 Dim myItem as AppointmentItem 
 
 Dim myRequiredAttendee As Recipient 
 
 Dim myOptionalAttendee As Recipient 
 
 Dim myResourceAttendee As Recipient 
 
 
 
 Set myItem = Application.CreateItem(olAppointmentItem) 
 
 myItem.MeetingStatus = olMeeting 
 
 myItem.Subject = "Strategy Meeting" 
 
 myItem.Location = "Conference Room B" 
 
 myItem.Start = #9/24/2002 1:30:00 PM# 
 
 myItem.Duration = 90 
 
 Set myRequiredAttendee = myItem.Recipients.Add ("Nate Sun") 
 
 myRequiredAttendee.Type = olRequired 
 
 Set myOptionalAttendee = myItem.Recipients.Add ("Kevin Kennedy") 
 
 myOptionalAttendee.Type = olOptional 
 
 Set myResourceAttendee = myItem.Recipients.Add("Conference Room B") 
 
 myResourceAttendee.Type = olResource 
 
 myItem.Display 
 
End Sub

関連項目

AppointmentItem オブジェクト

する方法: 予定の XML データを Outlook 予定のオブジェクトにインポートする

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

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