Application.MailMergeDataSourceLoad Event
Publisher Developer Reference |
Occurs when the data source is loaded for a mail merge.
Syntax
expression.MailMergeDataSourceLoad(Doc)
expression A variable that represents an Application object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Doc | Required | Document | The mail merge main document. |
Remarks
To access the Application object events, declare an Application object variable in the General Declarations section of a code module. Then set the variable equal to the Application object for which you want to access events. For information about using events with the Microsoft Office Publisher Application object, see Using Events with the Application Object.
Example
This example displays a message with the data source file name when the data source starts loading.
Visual Basic for Applications |
---|
|
For this event to occur, you must place the following line of code in the General Declarations section of your module and run the following initialization routine.
Visual Basic for Applications |
---|
|
See Also