CommandBarComboBox.SetFocus Method
Moves the keyboard focus to the specified CommandBarComboBox control. If the control is disabled or isn't visible, this method will fail.
Note
|
|---|
| The use of CommandBars in some Microsoft Office applications has been superseded by the new Ribbon user interface. For more information, search help for the keyword "Ribbon." |
Syntax
expression.SetFocus
expression A variable that represents a CommandBarComboBox object.
Example
This example creates a command bar named "Custom" and adds a ComboBox control and a Button control to it. The example then uses the SetFocus method to set the focus to the ComboBox control.
| Visual Basic for Applications |
|---|
|
Note