Reply Event

Reply Event

See Also         Example         Applies To

Occurs when the user selects the Reply action for an Outlook item.

Syntax 1

Function Item_Reply(byVal Response)

Syntax 2

Sub object_Reply(ByVal Response as Object, Cancel as Boolean)

object   An expression that evaluates to an object in the “Applies To” list.

Response   The new item being sent in response to the original message.

Cancel   Optional. False when the event occurs. If the event procedure sets this argument to True, the reply operation is not completed and the new item is not displayed.

Remarks

Use Syntax 1 in VBScript. If you set the return value of this function to False, the reply action is not completed and the new item is not displayed.

Use Syntax 2 when handling the Reply event in Visual Basic or Visual Basic for Applications.