Share via


Reminders.ReminderAdd Event

Outlook Developer Reference

Occurs after a reminder is added.

Syntax

expression.ReminderAdd(ReminderObject)

expression   A variable that represents a Reminders object.

Parameters

Name Required/Optional Data Type Description
ReminderObject Required [_REMINDER] The Reminder object added to the collection.

Remarks

A reminder is not actually created until the associated Microsoft Outlook item has been saved. Therefore, this event will not occur until the associated item object has been saved.

Example

The following example displays the date of the next reminder when a reminder is added to the collection.

Visual Basic for Applications
  Public WithEvents objReminders As Outlook.Reminders

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

Private Sub objReminders_ReminderAdd(ByVal ReminderObject As Reminder) 'Occurs when a Reminder object is added to the collection using the user interface or object model

MsgBox "A new reminder is added that will fire at: " & _
        ReminderObject.NextReminderDate

End Sub

See Also