Button Property

Applies To

Balloon object.

Description

Returns or sets the type of button displayed at the bottom of the Office Assistant balloon. When you create a new balloon with the NewBalloon method, this property is initially set to msoButtonSetOK. Read/write Long.

Can be one of the following MsoButtonSetType constants:

  • msoButtonSetAbortRetryIgnore
  • msoButtonSetBackClose
  • msoButtonSetBackNextClose
  • msoButtonSetBackNextSnooze
  • msoButtonSetCancel
  • msoButtonSetNextClose
  • msoButtonSetNone
  • msoButtonSetOK
  • msoButtonSetOkCancel
  • msoButtonSetRetryCancel
  • msoButtonSetSearchClose
  • msoButtonSetTipsOptionsClose
  • msoButtonSetYesAllNoCancel
  • msoButtonSetYesNo
  • msoButtonSetYesNoCancel

See Also

BuiltIn property, BuiltInFace property, FaceId property, PasteFace method, Show method.

Example

This example creates a balloon with a heading, text, and three region choices, and then displays it.

With Assistant.NewBalloon
    .Heading = "Regional Sales Data"
    .Text = "Select a region"
    For i = 1 To 3
        .CheckBoxes(i).Text = "Region " & i
    Next
    .Button = msoButtonSetOkCancel
    .Show
End With