Using Dialog Box Controls to Input Data
If you are constructing worksheets that other people will use for data entry, ensuring that data is entered as accurately as possible should be your main concern. No matter how solid the rest of the model is, if the data it relies upon is faulty, the results the model generates will be faulty as well.
When constructing a worksheet, here are a few notes to bear in mind to help ensure accurate data entry:
- Format the worksheet text in a large, clear, legible font.
- Provide labels that indicate to the user the data type or units a cell requires. For example, if a cell requires a value in months, add the label months in the cell to the right of the input cell.
- Provide instructions that tell the user how to input the data. These instructions can be in a text box at the top of the worksheet or in comments that you insert into each input cell.
- Take advantage of Excel’s powerful data validation features to ensure the right types of data get entered.
Another useful technique for ensuring accurate data entry is to add an extra worksheet layer that gives the user an interface for entering the data. This interface takes the form of dialog box controls such as lists, check boxes, and option buttons. You associate certain values with these controls, which then ensure that the user can enter only the values you want.
Before you can work with dialog box controls, you need to display the Ribbon’s Developer tab:
1. Choose Office, Excel Options to open the Excel Options dialog box.
2. Click Popular.
3. Click to activate the Show Developer Tab In the Ribbon check box.
4. Click OK.
You add the dialog box controls by choosing Developer, Insert and then selecting tools from the Form Controls list, shown in Figure 6.10. Note that only some of the controls are available for worksheet duty. I discuss the controls in detail a bit later in this section.
Follow these steps to add any control to a worksheet:
- Choose Developer, Insert, and then click the form control you want to create. The mouse pointer changes to a crosshair.
- Move the pointer onto the worksheet at the point where you want the control to display.
- Click and drag the mouse pointer to create the control.
- To edit the control caption, right-click the control, choose Edit Text, adjust the text accordingly, and then click outside the control.
- Right-click the control, and then click Format Control to display the Format Control dialog box.
- Click the Control tab, and then use the Cell Link box to enter the cell’s reference. You can either type the reference or select it directly on the worksheet.
Configure other options for the control:
- Checked (Check Box and Option Button)—Click this option to display the control as either checked or activated.
- Unchecked (Check Box and Option Button)—Click this option to display the control as either unchecked or deactivated.
- Input Range (List Box or Combo Box)—Enter a reference to the worksheet range that contains the items you want to display in the list.
- Current Value (Scroll Bar or Spin Button)—The initial value of the scroll bar or spin button.
- Minimum Value (Scroll Bar or Spin Button)—For a scroll bar, the value when the scroll box is at its leftmost position (for a horizontal scroll bar) or its topmost position (for a vertical scroll bar); for spin button, the smallest possible value.
- Maximum Value (Scroll Bar or Spin Button)—For a scroll bar, the value when the scroll box is at its rightmost position (for a horizontal scroll bar) or its bottommost position (for a vertical scroll bar); for spin button, the largest possible value.
- Incremental Change (Scroll Bar or Spin Button)—For a scroll bar, the amount that the value changes when the user clicks on a scroll arrow; for spin button, the amount the value changes when the user clicks an arrow.
- Page Change (Scroll Bar)—The amount that the scroll bar’s value changes when the user clicks between the scroll box and a scroll arrow.
// Related Posted - GOOGLE!
Related Websites
- 50 really useful Android tips and tricks [/caption] Android is a great little mobile operating system for the modern smartphone, but it can feel a little bewildering...
- Weekend Personal Finance Review It's time for another weekend of round-ups. I'm taking the next two weekends of round-ups off to get married. Because...
- Intermarket Trading Strategies (Wiley Trading) This book shows traders how to use Intermarket Analysis to forecast future equity, index and commodity price movements. It introduces...
- How to change Wordpress username through phpMyAdmin Many of you may be knowing that changing Wordpress login username is one of the ways to protect your Wordpress...
- Improve Your Life - An Interview with Leo From Zen Habits. One of my favorite bloggers, Leo from Zen Habits, agreed to my request for a quick interview with a resounding...

