Share via


BalloonLabel Object

BalloonLabels
BalloonLabel

Represents a label in the Office Assistant balloon. The BalloonLabel object is a member of the BalloonLabels collection.

Using the BalloonLabel Object

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

The following example creates a balloon that asks the user to click the label corresponding to his or her age.

With Assistant.NewBalloon
    .Heading = "Check Your Age Group."
    .Labels(1).Text = "Under 30."
    .Labels(2).Text = "30 to 50."
    .Labels(3).Text = "Over 50."
    .Text = "Which of the following " _
        & .Labels.Count & " choices apply to you?"
    .Show
End With

Remarks

Balloon check boxes display the user's choices until he or she dismisses the balloon. You can use balloon labels to return a number corresponding to the user's choice in the Select method as soon as the user clicks the button beside the label. To pass values to the Select method based on the user's choice, you must have the balloon type be set to msoBalloonTypeButtons.

Properties | Application Property | Creator Property | Item Property | Name Property | Parent Property | Text Property

Parent Objects

Child Objects