Represents the balloon where the Office Assistant displays information. A balloon can contain controls such as check boxes and labels.

Note
The Microsoft Office Assistant and AnswerWizard have been depreciated in the release of the Microsoft Office system.

Remarks

Use the NewBalloon property to return a Balloon object. There isn't a collection for the Balloon object; only one balloon can be visible at a time. However, it's possible to define several balloons and display any one of them when needed. For more information, see "Defining and Reusing Balloons" later in this topic. Use the Show method to make the specified balloon visible. Use the Callback property to run procedures based on selections from modeless balloons (balloons that remain visible while a user works in the application). Use the Close method to close modeless balloons.

Example
The following example creates a balloon that contains tips for saving entered data.

Visual Basic for Applications
With Assistant.NewBalloon .BalloonType = msoBalloonTypeBullets .Icon = msoIconTip .Button = msoButtonSetOk .Heading = "Tips for Saving Information." .Labels(1).Text = "Save your work often." .Labels(2).Text = "Install a surge protector." .Labels(3).Text = "Exit your application properly." .Show End With
You can reuse balloon objects you've already created by assigning the object to a variable and displaying the variable when you need it. This example defines balloon1 and balloon2 separately so that they can be reused.
Visual Basic for Applications
Set balloon1 = Assistant.NewBalloon balloon1.Heading = "First balloon" Set balloon2 = Assistant.NewBalloon balloon2.Heading = "Second balloon" balloon1.Show balloon2.Show balloon1.Heading = "First balloon, new heading" balloon1.Show
Note
Alternatively, instead of using separate variables, you can place the Balloon object into an array.
balloon object create balloon object with controls for check boxes and labels find office assistant balloon which displays headings and text ofv show property to make balloon object visible use a balloon object

See also: