Assistant.EndWizard Method
Releases the variable returned by the StartWizard method.
Note
|
|---|
| The Microsoft Office Assistant and AnswerWizard have been depreciated in the release of the Microsoft Office system. |
Note
|
|---|
| You should use this method only with the StartWizard method. |
Syntax
expression.EndWizard(WizardID, varfSuccess, Animation)
expression A variable that represents an Assistant object.
Parameters
| Name | Required/Optional | Data Type | Description |
|---|---|---|---|
| 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.
| Visual Basic for Applications |
|---|
|
Note