Testing the Custom Dialog Box

As you add controls to the dialog sheet, you'll want to test the dialog box. Unlike controls on a worksheet or chart sheet, controls on a dialog sheet aren't active — that is, they cannot be clicked. You can select, move, and resize them, and you can set their properties, but you cannot click them to activate the associated Visual Basic procedures. You must run the dialog sheet to see the working dialog box and test the controls.

Run Dialog

On the Forms toolbar, click the Run Dialog button to display the dialog box while you're creating and testing it. After you've finished creating the dialog box, you can use the Show method to display it from a Visual Basic procedure. For more information, see "Displaying the Custom Dialog Box" later in this chapter.