07 - SYSINFO - OOAA - Excel Basic VBA - User Forms With Solution
07 - SYSINFO - OOAA - Excel Basic VBA - User Forms With Solution
-Designing UserForms-
Objectives
• To be able to understand what UserForms are for
UserForms.
User Forms can be accessed through the Insert > User Form. Upon
clicking, you will be shown a User Form window and a Toolbox
User Forms - Properties
The properties of the User Form can be seen in the properties window.
The basic properties are the following: Name, Caption, and Font.
The Name property displays what VBA will remember the userform to be
called during coding.
The Caption property displays the name on the Title Bar of the user form
You could change the background settings through “Back Color” property or
even add a picture as a background with the “Picture” property.
The other functions are self explanatory, feel free to explore the properties.
User Forms - Toolbox
• First Name
• Last Name
• Age
• Gender (should be in the form of option
buttons)
• Year (1st to 5th Year, should be selected from a
combobox)
• First Name
• Last Name
• Age
• Gender (should be in the form of option
buttons)
• Year (1st to 5th Year, should be selected from a
combobox)