18.11.2014 Views

Microsoft Office

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Using UserForm Controls in a Worksheet 42<br />

FIGURE 42.3<br />

The Properties window lets you adjust the properties of a control.<br />

Common properties<br />

Each control has its own unique set of properties. However, many controls share properties. This section<br />

describes some properties that are common to all or many controls, as set forth in Table 42.2.<br />

Some ActiveX control properties are required (for example, the Name property). In other<br />

words, you can’t leave the property empty. Excel will always tell you if a required property is<br />

missing, by displaying an error message.<br />

NOTE<br />

TABLE 42.2<br />

Property<br />

AutoSize<br />

BackColor<br />

BackStyle<br />

Caption<br />

LinkedCell<br />

ListFillRange<br />

Properties Shared by Multiple Controls<br />

Description<br />

If True, the control resizes itself automatically, based on the text in its caption.<br />

The background color of the control.<br />

The style of the background (either transparent or opaque).<br />

The text that appears on the control.<br />

A worksheet cell that contains the current value of a control.<br />

A worksheet range that contains items displayed in a ListBox or ComboBox control.<br />

continued<br />

737

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

Saved successfully!

Ooh no, something went wrong!