|Publisher Developer Reference|
expression A variable that represents an Application object.
|Doc||Required||Document||The mail merge main document.|
|FromState||Required||Integer||The Mail Merge Wizard step from which a user is moving.|
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 .
This example displays a message when a users moves from step three of the Mail Merge Wizard to step four. Based on the user's answer to the message, the user will either continue on to step four or return to step three.
|Visual Basic for Applications|