Control.Caption Property
Office Developer Reference |
Gets or sets the caption text for a command bar control. Read/write.
Note
The Microsoft Office Assistant has been deprecated in the 2007 release of the Microsoft Office system.The Microsoft Office Assistant has been deprecated in the 2007 release of the Microsoft Office system.
Syntax
expression.Caption
expression A variable that represents a Control object.
Note
A control's caption is also displayed as its default
Example
This example adds a command bar control with a spelling checker button face to a custom command bar, and then it sets the caption to "Spelling checker."
Visual Basic for Applications |
---|
|
See Also