Some of the content in this topic may not be applicable to some languages.
Returns a BalloonLabels collection that represents the button labels, number labels, and bullet labels contained in the specified Office Assistant balloon. Read-only.
For information about returning a single member of a collection, see Returning an Object from a Collection.
Example
This 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, depending on the label the user clicks. In the example, a message box 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