WizardAfterChange Event

Microsoft Publisher Visual Basic

Private Sub object_WizardAfterChange( )

object    A variable which references an object of type Document declared with events in a class module.

Remarks

The WizardAfterChange event only occurs once regardless of the scope or number of individual modifications made to the publication.

To access the Document object events, declare a Document object variable in the General Declarations section of a class module, then set the variable equal to the Document object for which you want to access events.

For more information about using events with the Document object, see Using Events with the Document Object.

Example

This example displays a message when a publication is altered using the wizard pane. (The procedure can be stored in the ThisDocument module of a publication.)

Private Sub Document_WizardAfterChange()
    MsgBox "Remember to save changes made " _
        & "through the wizard pane!"
End Sub