Share via


Reminder.Snooze Method

Outlook Developer Reference

Delays the reminder by a specified time.

Syntax

expression.Snooze(SnoozeTime)

expression   An expression that returns a Reminder object.

Parameters

Name Required/Optional Data Type Description
SnoozeTime Optional Variant Indicates the amount of time (in minutes) to delay the reminder. The default value is 5 minutes.

Remarks

This is equivalent to the user clicking the Snooze button.

This method will fail if the current reminder is not active.

Example

The following Microsoft Visual Basic/Visual Basic for Applications (VBA) example delays all active reminders by a specified amount of time.

Visual Basic for Applications
  Sub SnoozeReminders()
    'Delays all reminders by a specified amount of time
    Dim objRems As Outlook.Reminders
    Dim objRem As Outlook.Reminder
    Dim varTime As Variant
Set objRems = Application.Reminders
varTime = InputBox("Type the number of minutes to delay")
For Each objRem In objRems
    If objRem.IsVisible = True Then
        objRem.<strong class="bterm">Snooze</strong> (varTime)
    End If
Next objRem

End Sub

See Also