ApplicationEvents4_MailMergeBeforeRecordMergeEventHandler Delegate

A Delegate type used to add an event handler for the MailMergeBeforeRecordMerge event. The MailMergeBeforeRecordMerge event occurs as a merge is executed for the individual records in a merge.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
<ComVisibleAttribute(False)> _
Public Delegate Sub ApplicationEvents4_MailMergeBeforeRecordMergeEventHandler ( _
    Doc As Document, _
    <OutAttribute> ByRef Cancel As Boolean _
)
'Usage
Dim instance As New ApplicationEvents4_MailMergeBeforeRecordMergeEventHandler(AddressOf HandlerMethod)
[ComVisibleAttribute(false)]
public delegate void ApplicationEvents4_MailMergeBeforeRecordMergeEventHandler(
    Document Doc,
    out bool Cancel
)

Parameters

  • Cancel
    Type: System.Boolean%
    True stops the mail merge process for the current record only before it starts.

See Also

Reference

Microsoft.Office.Interop.Word Namespace