Article ID: 105552 - Last Review: November 17, 2005 - Revision: 1.4 Static and dynamic default buttons in dialog boxes in ExcelThis article was previously published under Q105552 SUMMARY
In Microsoft Excel custom dialog boxes, there are two types of default
buttons: static and dynamic.
MORE INFORMATION
In custom dialog boxes in Microsoft Excel, you can set one button in a
dialog box as the Default button. To set a button as the Default
button:
If you have a dialog box that contains multiple controls, such as those listed here, pressing ENTER when a control has the focus will either activate the Default button or it will activate another button.
If this control has the Focus Pressing ENTER Activates this control
---------------------------------------------------------------------
DefaultButton DefaultButton
Button2 Button2
Button3 Button3
EditBox1 DefaultButton
CheckBox1 DefaultButton
CheckBox2 DefaultButton
ListBox1 DefaultButton
DropDown1 DefaultButton
In Microsoft Excel for Windows, Windows 95, and Windows NT, if you want a specific control to have the focus when you display a dialog box, you can set the Tab Order of the dialog box so that the control is at the top of the Tab Order. To access the Tab Order dialog box:
REFERENCES
"Visual Basic User's Guide," version 5.0, page 228-229
APPLIES TO
| Article Translations
|

Back to the top
