全部显示

DescriptionText 属性

       

返回或设置指定命令栏控件的说明。该说明不显示给用户,但其他开发者给控件行为归档时将有所帮助。String 类型,可读写。

说明

此属性用于 Macintosh 机的气球帮助。

示例

本示例可实现的功能为:在自定义命令栏中添加一个带控件行为说明的控件。

Set myBar = CommandBars.Add("Custom", msoBarTop, , True)
myBar.Visible = True
Set myControl = myBar.Controls _
    .Add(Type:=msoControlButton, ID:= _
    CommandBars("Standard").Controls("Paste").ID)
With myControl
    .DescriptionText = "Pastes the contents of the Clipboard"
    .Caption = "Paste"
End With