From the course: Excel VBA: Managing Files and Data
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Run a UserForm - Microsoft Excel Tutorial
From the course: Excel VBA: Managing Files and Data
Run a UserForm
- [Instructor] After you create a User form using VBA, you can use other VBA commands to display the form, and also to hide it. In this movie, I will show you how to use those commands. My sample file is 06_10 RunUserform. And that is a macro-enabled Workbook that you can find in the chapter six folder of the exercise files collection. This workbook contains a single worksheet and it is ready to accept data from my User form. So I'll switch over to VBA by pressing Alt + F11, to display the visual basic editor. And you can see here that I have a form to take in customer information and in the back, there's a code module with the sub-routine named RunUserForm. We'll get to that in a second. My goal is to create a VBA sub-routine that I could run by clicking a command button or some other control that will display this customer information form. Before I can create that sub-routine however, I need to know the name of the form.…
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 38s
-
(Locked)
Add a TextBox to a UserForm3m 31s
-
(Locked)
Add a ListBox to a UserForm4m 52s
-
(Locked)
Add a ComboBox to a UserForm4m 55s
-
(Locked)
Add an option button to a UserForm3m 55s
-
(Locked)
Add graphics to a UserForm4m 28s
-
(Locked)
Add a SpinButton to a UserForm4m 16s
-
Create a multipage or multitab UserForm3m 50s
-
(Locked)
Write UserForm data to a worksheet7m 39s
-
(Locked)
Run a UserForm4m 8s
-
(Locked)
-
-