Creating controls on a spreadsheet
You can add the following controls to a spreadsheet:
The way controls are activated varies depending on the action they incur. When you specify a source block to appear in a control (for example, a list box), each row in the block you specify becomes one item in a list. If you want to make a control functional, you must specify the appropriate information in a different area depending on the control.
You can attach a macro to a form control that runs when a user activates the control. For example, a user can click a button that runs a macro to perform a calculation. You can attach a macro to all form controls except group boxes and labels. For information about creating macros, see “Using macros.”
Form controls can also be attached to the Internet. For example, a button can launch a browser linked to a Web site. For information about using Quattro Pro notebooks with the Internet, see “Creating spreadsheets for the Web.”
In addition, you can link a custom dialog box to a form control so that when a user executes a macro, the specified dialog box displays.
To add a form control to a spreadsheet |
1.
|
|
Click Insert Form control, and click a form control.
|
2.
|
|
Click where you want the control to display.
|
3.
|
|
Drag diagonally until the control is the desired size.
|
You can also drag horizontally and vertically to create a different effect.
|
•
|
|
To create a form control of the default size, position the pointer where you want the control to display, and click.
|
To attach a macro to a form control |
1.
|
|
Select a form control.
|
2.
|
|
Right-click the control, and click Properties.
|
3.
|
|
Click the Macro tab.
|
4.
|
|
Type the macro command name or location in the Enter macro box.
|
You must enclose the macro command name with braces {}.
|
To attach a form control to the Internet |
1.
|
|
Select a form control.
|
2.
|
|
Right-click the control, and click Properties.
|
3.
|
|
Click the Macro tab.
|
4.
|
|
Click Link to URL.
|
5.
|
|
Type the Internet address in the URL box.
|
To display a dialog box from a form control |
1.
|
|
Select a form control.
|
2.
|
|
Right-click the control, and click Properties.
|
3.
|
|
Click the Macro tab.
|
4.
|
|
Click Execute dialog.
|
5.
|
|
In the Execute dialog box, choose a dialog box from the Active dialog list.
|
6.
|
|
Type a cell reference in the Result cell box.
|
7.
|
|
Type a cell reference in the Values range box.
|