BeforeCheckNames Event

See Also         Example         Applies To        

Occurs just before Microsoft Outlook starts resolving names in the recipient collection for an item.

Syntax 1

Function Item_BeforeCheckNames()

Syntax 2

Sub object_BeforeCheckNames(Cancel as Boolean)

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

Cancel   Optional. False when the event occurs. If the event procedure sets this argument to True, the operation is cancelled and the names in the recipients collection are not resolved.

Remarks

Use Syntax 1 in VBScript. If you set the return value of this function to False, the operation is cancelled and the names in the recipients collection are not resolved.

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