ReminderAdd Event

Microsoft Outlook Visual Basic

ReminderAdd Event

       

Occurs after a reminder is added.

Private Sub expression_ReminderAdd(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 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 name of the new reminder when a reminder is added to the collection.

Private Sub objReminders_ReminderAdd(ByVal ReminderObject As Reminder)
'Occurs when a Reminder object is added to the collection

    MsgBox "The following reminder has been added: " & _
            ReminderObject.Caption

End Sub