View.GoToDate メソッド (Outlook)
現在のビューで情報の表示に使用される日付を変更します。
構文
式。 GoToDate
( _Date_
)
式View オブジェクトを表す変数。
パラメーター
名前 | 必須 / オプション | データ型 | 説明 |
---|---|---|---|
Date | 必須 | Date | ビューで変更する日付を指定します。 |
注釈
CalendarView オブジェクトなどの現在のビューで表示に使用する日付を指定するには、最初に Folder.CurrentView ではなく Explorer.CurrentView を使用して、現在のビューの View オブジェクトを取得する必要があります。 次のコード サンプルは、このアクションを実行する方法を示しています。
Sub TestGoToDate()
Dim oCV As Outlook.CalendarView
Dim oExpl As Outlook.Explorer
Dim datGoTo As Date
datGoTo = "11/7/2005"
' Display the contents of the Calendar default folder.
Set oExpl = Application.Explorers.Add( _
Application.Session.GetDefaultFolder(olFolderCalendar), olFolderDisplayFolderOnly)
oExpl.Display
' Retrieve the current view by calling the
' CurrentView property of the Explorer object.
Set oCV = oExpl.CurrentView
' Set the CalendarViewMode property of the
' current view to display items by day.
oCV.CalendarViewMode = olCalendarViewDay
' Call the GoToDate method to set the date
' for which information is displayed in the view.
oCV.GoToDate datGoTo
End Sub
関連項目
サポートとフィードバック
Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示