When you select an item from the list, its order appears in the cell link (G1). Vice versa, if you write a number into the linked cell that item is selected in the combo box.
Similar to buttons and other Form Control items, you can assign macro to drop down combo boxes. This macro will be automatically called every time you change the value in the combo box. You can use the same methods, which we described for buttons, to assign a macro.
9.5.3 Check Box
Check box is usually used in true/false questions. You can find many samples of check box in many programs. Except the initial state, check box has two possible states; selected or unselected. For the initial state, there is the third option: Mixed which means “State is not available” (not true but also not false).
Same as the combo boxes, from the Format control Control tab, you can assign a cell link and define other status options. Linked cell will contain TRUE value, if the check box is checked. Otherwise it’ll have FALSE.
9.5.4 Option Button
Option button is also a common button in many programs. It’s used when you have different options where it’s possible to select only one. When you have two possible options, it’s better to use a check box. But, if you have three or more options and only one of them can be selected at a time, then, it’s better to use combo box or option buttons group. For example, ‘For cells with comments’ option in Excel Options, we have 3 possible choices. And, you can select only one of the choices. Or, in most of the multiple choice exams, only one answer can be selected: A, B, C, D or none.
Option button also has the Assign macro option and Format Controls. In the Control tab, it has cell link, value and 3-D effect options.
Example 9.6:
The accountant in your father’s company is using Excel worksheets in his balances. He has difficulties in his balances. So, he wants to automate his balance operations. As it’s shown on the next page, he designed two main panes. The first part is for entering data starting from the third row. The second part is beneath it and is the database that keeps all records. At the top, he wants to see the total amount.