BalloonType 属性

       

本主题中的某些内容可能不适用于某些语言。

返回或设置“Office 助手”所用的气球类型。创建 Balloon 对象时,该属性的初始值被设为 msoBalloonTypeButtons 常量。MsoBalloonType 类型,可读写。

示例

本示例创建一个介绍性的气球,以解释选择打印机的方法。该气球是非模态的,以便用户根据其中的指示进行操作并在工作期间一直显示该气球。

Set bln = Assistant.NewBalloon
With bln
    .Heading = "Instructions for Choosing a Printer."
    .Text = "Click OK when you've chosen a printer."
    .Labels(1).Text = "From the File menu, choose Print."
    .Labels(2).Text = "Click Setup."
    .Labels(3).Text = "Select the name of the printer."
    .BalloonType = msoBalloonTypeNumbers
    .Mode = msoModeModeless
    .Callback = "ProcessPrinter"
    .Button = msoButtonSetOK
    .Show
End With