Skip to Content
Excel VBA Programming For Dummies, 6th Edition
book

Excel VBA Programming For Dummies, 6th Edition

by Dick Kusleika
February 2022
Beginner to intermediate content levelBeginner to intermediate
432 pages
9h 21m
English
For Dummies
Content preview from Excel VBA Programming For Dummies, 6th Edition

Chapter 17

Using UserForm Controls

IN THIS CHAPTER

Bullet Understanding each type of dialog box control

Bullet Changing each control’s properties

Bullet Manipulating dialog box controls in your UserForm object

A user responds to a custom dialog box (also known as a UserForm) by using the various controls (buttons, text boxes, option buttons, and so on) that the dialog box contains. Your VBA code then uses of these responses to determine which actions to take. You have quite a few controls at your disposal and this chapter tells you about them.

If you worked through the hands-on example in Chapter 16, you already have some experience with UserForm controls. This chapter fills in some of the gaps.

Getting Started with Dialog Box Controls

In this section, you explore how to add controls to a UserForm, give them meaningful names, and adjust some of their properties.

Remember Before you can do any of these things, you need a UserForm. Add a UserForm to your project by selecting the project in the Project Explorer and choosing Insert  ⇒    UserForm in the VBE.

Adding controls

Oddly enough, the VBE doesn’t have ...

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.
Start your free trial

You might also like

Excel VBA Programming For Dummies, 5th Edition

Excel VBA Programming For Dummies, 5th Edition

Michael Alexander, John Walkenbach

Publisher Resources

ISBN: 9781119843078Purchase Link