Snooze Method

Microsoft Outlook Visual Basic

Snooze Method

       

Delays the reminder by a specified time. This is equivalent to the user clicking the Snooze button.

expression.Snooze(SnoozeTime)

expression   Required. An expression that returns a Reminder object.

SnoozeTime  Optional Variant. Indicates the amount of time (in minutes) to delay the reminder. The default value is 5 minutes.

Remarks

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

Example

The following example delays all active reminders by a specified amount of time.

Sub SnoozeReminders()
'Delays all reminders by a specified amount of time

    Dim olApp As Outlook.Application
    Dim objRems As Reminders
    Dim objRem As Reminder
    Dim varTime As Variant

    Set olApp = Outlook.Application
    Set objRems = olApp.Reminders
    varTime = InputBox("Enter the number of minutes to delay")

    For Each objRem In objRems
        If objRem.IsVisible = True Then
            objRem.Snooze (varTime)
        End If
    Next objRem

End Sub