Excel - Form Controls
Excel - Form Controls
Spinners1
Input Year 1 sales Annual sales growth Year 1 price Year 1 Cost
1
High value 30,000 50% $20 $15 [increments of 1,000] [increments of 1 | note: link to E3 | C3 = E3/100] [increments of 1] [increments of 1]
Examples from Chapter 25, EXCEL 2007 Data Analysis and Business Modeling by Wayne Winston.
Form Controls
Page 1
Option Buttons
Form Controls
Page 2
Form Controls
Page 3
Form Controls
Page 4
CheckBox
Form Controls
Page 5
Form Controls
Page 6
Overview of forms, Form controls, and ActiveX controls on a worksheet http://office.microsoft.com/enus/excel/HA102376631033.aspx Form controls Form controls are the original controls that are compatible with earlier versions of Excel, starting with Excel version 5.0. Form controls are also designed for use on XLM macro sheets. You use Form controls when you want to easily reference and interact with cell data without using VBA code, and when you want to add controls to chart sheets (chart sheet: A sheet in a workbook that contains only a chart. A chart sheet is beneficial when you want to view a chart or a PivotChart report separately from worksheet data or a PivotTable report.). For example, after you add a list box control to a worksheet and linking it to a cell, you can return a numeric value for the current position of the selected item in the control. You can then use that numeric value in conjunction with the INDEX function to select different items from the list.
Form Controls
Page 7
You can also run macros by using Form controls. You can attach an existing macro to a control, or write or record a new macro. When a user of the form clicks the control, the control runs the macro. However, these controls cannot be added to UserForms, used to control events, or modified to run Web scripts on Web pages. Summary of form controls Button Name Label Example Description Identifies the purpose of a cell or text box, or displays descriptive text (such as titles, captions, pictures) or brief instructions.
Group box
Groups related controls into one visual unit in a rectangle with an optional label. Typically, option buttons, check boxes, or closely related contents are grouped.
Button
Runs a macro that performs an action when a user clicks it. A button is also referred to as a push button.
Check box
Turns on or off a value that indicates an opposite and unambiguous choice. You can select more than one check box on a worksheet or in a group box. A check box can have one of three states: selected (turned on), cleared (turned off), and mixed, meaning a combination of on and off states (as in a multiple selection).
Option button
Allows a single choice within a limited set of mutually exclusive choices; an option button is usually contained in a group box or a frame. An option button can have one of three states: selected (turned on), cleared (turned off), and mixed, meaning a combination of on and off states (as in a multiple selection). An option button is also referred to as a radio button.
Form Controls
Page 8
List box
Displays a list of one or more items of text from which a user can choose. Use a list box for displaying large numbers of choices that vary in number or content. There are three types of list boxes: A singleselection list box enables only one choice. In this case, a list box resembles a group of option buttons, except that a list box can handle a large number of items more efficiently. A multipleselection list box enables either one choice or contiguous (adjacent) choices. An extendedselection list box enables one choice, contiguous choices, and noncontiguous (or disjointed) choices.
Combo box
Combines a text box with a list box to create a dropdown list box. A combo box is more compact than a list box but requires the user to click the down arrow to display the list of items. Use a combo box to enable a user to either type an entry or choose only one item from the list. The control displays the current value in the text box, regardless of how that value is entered.
Scroll bar
Scrolls through a range of values when you click the scroll arrows or drag the scroll box. In addition, you can move through a page (a preset interval) of values by clicking the area between the scroll box and either of the scroll arrows. Typically, a user can also type a text value directly into an associated cell or text box. Increases or decreases a value, such as a number increment, time, or date. To increase the value, click the up arrow; to decrease the value, click the down arrow. Typically, a user can also type a text value directly into an associated cell or text box.
Spin button
NOTE The following controls are unavailable in Office Excel 2007 workbooks. These controls can be used in Excel version 5.0 dialog sheets only. Button Name Text Field
Form Controls
Page 9
Form Controls
Page 10
Article ID: 291073 - Last Review: January 30, 2007 - Revision: 3.2
Form Controls
Page 11
Form Controls
Page 12
Form Controls
Page 13
Form Controls
Page 14
Form Controls
Page 15