Visual Basic: Windows Controls
Returns or sets the text for a Button object's description, which is displayed in the Customize Toolbar dialog box.
object.Description [= string]
The Description property syntax has these parts:
|object||An object expression that evaluates to a Button object.|
|string||The string displayed in the Customize Toolbar dialog box when the button is selected.|
At run time, the Customize Toolbar dialog box can be invoked either by a user double-clicking the Toolbar control or programmatically using the Customize method. In either case, when the user selects a button in the dialog box, a description of the button is displayed in the lower-left corner of the dialog box. The text for that description is set with the Description property.
You can set the Description text when you add a Button object, as follows:
Dim btnX As Button ' Add a button with the Key "save." Set btnX = Toolbar1.Buttons.Add(,"save") btnX.Description = "Save a file."