Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

OptionButton.StatusBarText Property

Office 2007
You can use the StatusBarText property to specify the text that is displayed in the status bar when a control is selected. Read/write String.



expression   A variable that represents an OptionButton object.


You set the StatusBarText property by using a string expression up to 255 characters long.

Bb216868.vs_note(en-us,office.12).gif  Note
The length of the text you can display in the status bar depends on your computer hardware and video display.

You can use the StatusBarText property to provide specific information about a control. For example, when a text box has the focus, a brief instruction can tell the user what kind of data to enter

Bb216868.vs_note(en-us,office.12).gif  Note
You can also use the ControlTipText property to display a ScreenTip for a control.

If you create a control by dragging a field from the field list, the value in a field's Description property is copied to the StatusBarText property.


The following example sets the status bar text to be displayed when the "Address_TextBox" control in the "Mailing List" form has the focus in Form View.

Visual Basic for Applications
Forms("Mailing List").Controls("Address_TextBox"). _
    StatusBarText = "Enter the company's mailing address."

Community Additions

© 2015 Microsoft