Types of Dialogs
There are many different ways to display dialog boxes using Visual Basic in Excel, so it is helpful to organize those techniques by starting with the type of dialog box you want to display. The three main sorts of dialog boxes are informational displays, data-entry forms, and other tasks. Table 20-1 organizes the ways to display dialogs based on those types.
Table 20-1. Types of dialogs and how to display them
|
Type of dialog |
Example |
Use one of these |
See |
|---|---|---|---|
|
Informational display |
Success message |
| |
|
Help |
| ||
|
Data-entry |
Enter values in a list |
|
This chapter |
|
Advanced data entry |
User form |
This chapter | |
|
Task-specific |
Get a value or range |
| |
|
Get a file or folder name |
| ||
|
Show a built-in Excel dialog box |
| ||
|
Set task options or custom properties |
User form |
This chapter | |
|
Wizard |
User form |
This chapter |
As you can see from Table 20-1, Excel handles the well-structured tasks for you, but as your needs become open-ended, you need to start creating your own user forms. The lesson from Table 20-1 is to not start with the Forms Designer—look around first to see if Excel already does the work for you!
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access