BalloonLabels Collection Object

Description

A collection of BalloonLabel objects that represent all the labels in the Office Assistant balloon.

Using the BalloonLabels Collection

Use the Labels property to return the BalloonLabels collection.

Use Labels(index), where index is a number from 1 through 5, to return a BalloonLabel object. There can be up to five labels in one balloon; each label appears when a value is assigned to its Text property.

The following example creates a balloon containing three choices. The variable x is set to the return value of the Show method, which will be 1, 2, or 3, corresponding to the label the user clicks. The example displays the value of the variable x, but you can pass the value to another procedure, or you can use the value in a Select Case statement.

Set b = Assistant.NewBalloon
With b
    .Heading = "This is my heading"
    .Text = "Select one of these things:"
    .Labels(1).Text = "Choice One"
    .Labels(2).Text = "Choice Two"
    .Labels(3).Text = "Choice Three"
     x = .Show
End With
MsgBox x
Remarks

Balloon check boxes display the user's choices until the user dismisses the balloon. Balloon labels record the user's choice as soon as the user clicks the button beside the label.

Properties

Application property, Count property, Creator property, Item property (BalloonLabels collection), Name property, Parent property.

Example (Microsoft Access)

See the Assistant object example (Microsoft Access).