共用方式為


Outlook) (提醒物件

代表 Outlook 提醒。

註解

提醒可讓使用者排定在指定時間所顯示的快顯對話方塊,以追蹤即將來臨的約會。 除了約會之外,工作、連絡人和電子郵件訊息也可能會出現提醒。

使用 提醒 (索引) ,其中 index 是提醒的名稱或索引編號,可傳回單一 Reminder 物件。

建立新的 Microsoft Outlook 專案,例如 AppointmentItem 物件,並將專案的 ReminderSet 屬性設定為 True時,會以程式設計方式建立提醒。

使用 Reminders 集合的 Remove 方法可將 Reminder 物件從集合中移除。 一旦將提醒從其關聯的項目中移除,AppointmentItem 物件的 ReminderSet 屬性就會設定為 False

範例

下列範例會顯示集合中第一個提醒的標號。

Sub ViewReminderInfo() 
 
 'Displays information about first reminder in collection 
 
 
 
 Dim colReminders As Outlook.Reminders 
 
 Dim objRem As Reminder 
 
 
 
 Set colReminders = Application.Reminders 
 
 'If there are reminders, display message 
 
 If colReminders.Count <> 0 Then 
 
 Set objRem = colReminders.Item(1) 
 
 MsgBox "The caption of the first reminder in the collection is: " & _ 
 
 objRem.Caption 
 
 Else 
 
 MsgBox "There are no reminders in the collection." 
 
 
 
 End If 
 
 
 
End Sub

下列範例會建立新的約會項目,並將 ReminderSet 屬性設定為 True,在 Reminders 集合中加入新的 Reminder 物件。

Sub AddAppt() 
 
 'Adds a new appointment and reminder to the reminders collection 
 
 Dim objApt As AppointmentItem 
 
 
 
 Set objApt = Application.CreateItem(olAppointmentItem) 
 
 objApt.ReminderSet = True 
 
 objApt.Subject = "Tuesday's meeting" 
 
 objApt.Save 
 
End Sub

方法

名稱
Dismiss
Snooze

屬性

名稱
Application
Caption
Class
IsVisible
Item
NextReminderDate
OriginalReminderDate
Parent
Session

另請參閱

Reminder 物件成員Outlook 物件模型參考

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應