From the course: Excel VBA: Managing Files and Data
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Create a UserForm
From the course: Excel VBA: Managing Files and Data
Create a UserForm
- One issue that Excel VBA developers always face is how to allow for user input. If you give users direct access to every worksheet, then they can change data they're not supposed to, either by accident or on purpose. Also, they might discover data that you would rather keep hidden. With this movie, I will show you how to create and use user forms, which allow user input, but without direct access to worksheets. My sample file is 06_01_CreateUserForm, and you can find it in the Chapter 6 folder of the Exercise Files collection. We won't be using any of the data on the Sheet 1 worksheet, so I'll press Alt + F11 to move to the Visual Basic Editor. I don't have any code modules created yet, but I can create a user form. To do that, I'll go up to the Insert menu, and then the first available item is User Form, so I'll click that. And I get a user form displayed for me, as well as the toolbox with controls that I can add. We will get to the controls in the toolbox individually later in…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
(Locked)
Create a UserForm2m 26s
-
(Locked)
Add a TextBox to a UserForm3m 47s
-
(Locked)
Add a ListBox to a UserForm3m 53s
-
(Locked)
Add a ComboBox to a UserForm4m 25s
-
(Locked)
Add an option button to a UserForm6m 59s
-
(Locked)
Add graphics to a UserForm5m 11s
-
(Locked)
Add a SpinButton to a UserForm5m 9s
-
(Locked)
Create a multipage or multitab UserForm5m 25s
-
(Locked)
Write UserForm data to a worksheet7m 52s
-
(Locked)
Run a UserForm3m 45s
-
(Locked)
-
-
-