ReplyAll Event

Applies To

AppointmentItem object, ContactItem object, JournalItem object, MailItem object, MeetingRequestItem object, NoteItem object, PostItem object, RemoteItem object, ReportItem object, TaskItem object, TaskRequestItem object.

Description

Occurs when the user selects the ReplyAll action for an Outlook item. Both the original item and the newly created reply item are passed to the event. If you set the return value of this function to False, the ReplyAll action isn't completed and the new item isn't displayed.

Syntax

Function Item_ReplyAll(Response As Object)

Response The item created in response to the event.

See Also

Close event, CustomAction event, CustomPropertyChange event, Forward event, Open event, PropertyChange event, Read event, Reply event, Send event, Write event.

Example

This example reminds the user that proceeding will reply to all original recipients of an item and, depending on the user's response, either allows the action to continue or stops it.

Function Item_ReplyAll(ByVal myResponse)
    myResult = MsgBox ("Do you really want to reply to all original " _
        & "recipients?", 289, "Flame Protector")
    If myResult = 1 Then
        Item_ReplyAll = True
    Else
        Item_ReplyAll = False
    End If
End Function