Share via


Button Property

Some of the content in this topic may not be applicable to some languages.

MsoButtonSetType

MsoButtonSetType can be one of these MsoButtonSetType constants.
msoButtonSetAbortRetryIgnore
msoButtonSetBackClose
msoButtonSetBackNextClose
msoButtonSetBackNextSnooze
msoButtonSetCancel
msoButtonSetNextClose
msoButtonSetNone
msoButtonSetOK
msoButtonSetOkCancel
msoButtonSetRetryCancel
msoButtonSetSearchClose
msoButtonSetTipsOptionsClose
msoButtonSetYesAllNoCancel
msoButtonSetYesNo
msoButtonSetYesNoCancel

Example

This example displays a balloon that contains a heading, text, three region choices, and two command buttons (OK and Cancel).

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

Applies to | Balloon Object

See Also | Adding and Displaying Shortcut Menus | Adding and Managing Menu Bars and Menu Items | Adding and Modifying Toolbars | BuiltIn Property | BuiltInFace Property | Creating and Modifying Balloons | FaceId Property | PasteFace Method | Show Method | Using Command Bars