EndWizard Method

Microsoft Office Object Model

EndWizard Method

       

Some of the content in this topic may not be applicable to some languages.

Releases the variable returned by the StartWizard method.

Note   You should use this method only with the StartWizard method.

expression.EndWizard(WizardID, varfSuccess, Animation)

expression    Required. An expression that returns an Assistant object.

WizardID   Required Long. The number returned by the StartWizard method.

varfSuccess   Required Boolean. True to indicate that the user completed the wizard successfully.

Animation   Optional Variant. The animation the Office Assistant performs if varfSuccess is set to True. The default value is msoAnimationCharacterSuccessMajor.

Example

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

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