Chapter 20. Building Dialog Boxes
Chapter 7 showed you how to display the built-in Excel dialog boxes
and how to use InputBox and the File dialogs to get information from the user. In this chapter, I show you how to create more complex data-entry forms, validate entries, and use the Visual Basic Forms Designer to create custom dialog boxes.
This chapter includes task-oriented reference information for Forms 2.0 user forms and controls: UserForm, CheckBox, ComboBox, CommandButton, Control, Font, Frame, Image, Label, ListBox, MultiPage, OptionButton, Page, RefEdit, ScrollBar, SpinButton, TabStrip, TextBox, ToggleButton. Those objects aren’t part of the Excel object model and so aren’t part of the Excel VBA Help. Instead, the help topics for those objects are found in C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\1033\FM20.CHM.
Tip
Code used in this chapter and additional samples are available in ch20.xls.
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