Button 属性
优质
小牛编辑
127浏览
2023-12-01
本主题中的某些内容可能不适用于某些语言。
返回或设置“Office 助手”气球底部按钮的类型。创建Balloon 对象时,该属性的初始化值为msoButtonSetOK。MsoButtonSetType 类型,可读写。
MsoButtonSetType 可为以下 MsoButtonSetType 常量之一:msoButtonSetAbortRetryIgnoremsoButtonSetBackClosemsoButtonSetBackNextClosemsoButtonSetBackNextSnoozemsoButtonSetCancelmsoButtonSetNextClosemsoButtonSetNonemsoButtonSetOKmsoButtonSetOkCancelmsoButtonSetRetryCancelmsoButtonSetSearchClosemsoButtonSetTipsOptionsClosemsoButtonSetYesAllNoCancelmsoButtonSetYesNomsoButtonSetYesNoCancel示例
本示例显示包含标题、文本、三个区域选项以及两个命令按钮(“确定”和“取消”按钮)的气球。
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