EndWizard Method

Applies To

Assistant object.

Description

Closes the Office Assistant window and releases the variable that uniquely identifies the wizard session.

Note You use this method to complete the process begun with the StartWizard method.

Syntax

expression.EndWizard(WizardID, varfSuccess, Animation)

expression Required. An expression that returns an Assistant object.

WizardID Required Long. A number that uniquely identifies the Office Assistant wizard session, as returned by the StartWizard method.

varfSuccess Required Boolean. When the method returns, this argument is True if the user completes the wizard successfully.

Animation Optional Variant. The type of animation that the Office Assistant performs when the wizard session ends.

See Also

ActivateWizard method, Assistant object, StartWizard method.

Example

This example closes the Office Assistant for a wizard session that was completed successfully by the user. The variable helpForWiz was assigned the return value of the StartWizard method.

Assistant.EndWizard WizardId:=helpForWiz, _
    varfSuccess:=True, Animation:=msoAnimationGoodbye