18.11.2014 Views

Microsoft Office

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Using UserForm Controls in a Worksheet 42<br />

A description of the ActiveX controls appears in Table 42.1.<br />

TABLE 42.1<br />

ActiveX Controls<br />

Button<br />

CommandButton<br />

ComboBox<br />

CheckBox<br />

ListBox<br />

TextBox<br />

ScrollBar<br />

SpinButton<br />

OptionButton<br />

Label<br />

Image<br />

ToggleButton<br />

More Controls<br />

What It Does<br />

Inserts a CommandButton control (a clickable button)<br />

Inserts a ComboBox control (a drop-down list)<br />

Inserts a CheckBox control (to control Boolean options)<br />

Inserts a ListBox control (to allow the user to select an item from a list)<br />

Inserts a TextBox control (allows the user to type text)<br />

Inserts a ScrollBar control (to specify a value by dragging a bar)<br />

Inserts a SpinButton control (to specify a value by clicking up or down)<br />

Inserts an OptionButton control (to allow a user to select from multiple options)<br />

Inserts a Label control (a container for text)<br />

Inserts an Image control (to hold an image)<br />

Inserts a ToggleButton control (to control Boolean options)<br />

Displays a list of other ActiveX controls that are installed on your system<br />

Using Controls<br />

Adding ActiveX controls in a worksheet is easy. After you add a control, you can adjust its properties to<br />

modify the way that the control looks and works.<br />

Adding a control<br />

To add a control to a worksheet, choose Developer ➪ Controls and click the Insert drop-down control.<br />

Then, click and drag the control that you want to use into the worksheet to create the control. You don’t<br />

need to be too concerned about the exact size or position because you can modify these properties at any<br />

time.<br />

WARNING<br />

Make sure that you select a control from the ActiveX controls — not from the Forms controls.<br />

If you insert a Forms control, the instructions in this chapter will not apply.<br />

735

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!