ActivateWizard Method

Microsoft Office Visual Basic

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

Resumes or suspends Office Assistant Help during a custom wizard.

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

expression.ActivateWizard(WizardID, Act, Animation)

expression    Required. An expression that returns an Assistant object.

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

Act    Required MsoWizardActType. Specifies the change to the Office Assistant Help session.

MsoWizardActType can be one of these MsoWizardActType constants.
msoWizardActActive
msoWizardActInactive
msoWizardActResume
msoWizardActSuspend

Animation    Optional Variant. The animation the Office Assistant performs when it is suspended or resumed.

Example

This example suspends the wizard session that was started with the StartWizard method. The variable lHelpForWiz was set to the return value of the StartWizard method.

Assistant.ActivateWizard WizardID:=lHelpForWiz, _
   Act:=msoWizardActSuspend, Animation:=msoAnimationGoodbye