Muokkaa

Jaa


Reminder.Snooze method (Outlook)

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 for Applications (VBA) example delays all active reminders by a specified amount of time.

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.Snooze (varTime) 
 
 End If 
 
 Next objRem 
 
End Sub

See also

Reminder Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.