Partager via


Snooze Event

Occurs when a reminder is dismissed using the Snooze button.

Private Subexpression_Snooze(ByVal ReminderObject As Reminder)

*expression   * A variable which references an object of type **Reminders**declared with events in a class module.

Remarks

This event will fire when the **Snooze**method is executed, or when the user clicks the Snooze button.

Example

The following Microsoft Visual Basic/Visual Basic for Applications (VBA) example displays the original date and time set for the **Reminder**object that has been snoozed.

Public WithEvents objReminders As Outlook.Reminders

Sub Initialize_Handler()
    Set objReminders = Application.Reminders
End Sub

Private Sub objReminders_Snooze(ByVal ReminderObject As Reminder)
    'Occurs when a user clicks Snooze or when snooze is
    'programmatically executed.
    MsgBox "The reminder was originally set at " & ReminderObject.OriginalReminderDate
End Sub

Applies to | Reminders Collection