ReminderFire Event

Microsoft Outlook Visual Basic

Private Sub expression_ReminderFire(ByVal ReminderObject As Reminder)

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

ReminderObject     Required. The Reminder object that has been executed.

Example

The following Microsoft Visual Basic/Visual Basic for Applications (VBA) example displays the item that fired the Reminder event every time a reminder is executed.

Public WithEvents objReminders As Outlook.Reminders

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

Private Sub objReminders_ReminderFire(ByVal ReminderObject As Reminder)
	'Opens the item when a reminder executes
	ReminderObject.Item.Display
End Sub