30.04.2017 Views

4523756273

Create successful ePaper yourself

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

312<br />

Part IV: Communicating with Your Users<br />

❑ Is the tab order set correctly? The user should be able to tab through<br />

the dialog box and access the controls sequentially.<br />

❑ If you plan to store the dialog box in an add-in, did you test it thoroughly<br />

after creating the add-in?<br />

❑ Will your VBA code take appropriate action if the user cancels the dialog<br />

box or presses Esc or uses the close button?<br />

❑ Does the text contain any misspellings? Unfortunately, the Excel spell<br />

checker doesn’t work with UserForms, so you’re on your own when it<br />

comes to spelling.<br />

❑ Will your dialog box fit on the screen in the lowest resolution to be used<br />

(usually 800×600 mode)? In other words, if you develop your dialog box<br />

by using a high-resolution video mode, your dialog box may be too big<br />

to fit on a screen in lower resolution.<br />

❑ Do all TextBox controls have the appropriate validation setting? If you<br />

intend to use the WordWrap property, is the MultiLine property also set<br />

to True?<br />

❑ Do all ScrollBars and SpinButtons allow valid values only?<br />

❑ Do all ListBoxes have their MultiSelect property set properly?<br />

The best way to master custom dialog boxes is by creating dialog boxes —<br />

lots of them. Start simply and experiment with the controls and their properties.<br />

And don’t forget about the Help system; it’s your best source for details<br />

about every control and property.

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

Saved successfully!

Ooh no, something went wrong!