0
0
Excelspreadsheet~5 mins

UserForm basics in Excel - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a UserForm in Excel VBA?
A UserForm is a custom dialog box that you create in Excel VBA to collect user input or display information in a friendly way.
Click to reveal answer
beginner
How do you add a UserForm in Excel VBA?
In the VBA editor, right-click on any item in the Project Explorer, choose Insert, then select UserForm.
Click to reveal answer
beginner
Name two common controls you can add to a UserForm.
You can add controls like TextBox (for typing input) and CommandButton (for clicking actions).
Click to reveal answer
beginner
How do you show a UserForm to the user?
Use the VBA code line UserFormName.Show to display the UserForm on the screen.
Click to reveal answer
beginner
What happens when you click a CommandButton on a UserForm?
Clicking a CommandButton runs the VBA code written in its Click event, allowing you to respond to user actions.
Click to reveal answer
How do you open the VBA editor in Excel?
APress F1
BPress Ctrl + C
CClick File > Save
DPress Alt + F11
Which control lets users type text in a UserForm?
ALabel
BCheckBox
CTextBox
DCommandButton
What VBA code shows a UserForm named 'MyForm'?
AMyForm.Show
BShow.MyForm
CDisplay UserForm
DOpenForm(MyForm)
Where do you write code for a UserForm's button click?
AIn the button's Click event procedure
BIn the Excel worksheet
CIn the File menu
DIn the UserForm's properties window
Which of these is NOT a UserForm control?
AComboBox
BPivotTable
CTextBox
DLabel
Explain how to create and show a simple UserForm with a button in Excel VBA.
Think about the steps from opening VBA to showing the form.
You got /5 concepts.
    Describe the purpose of UserForms and how they improve user interaction in Excel.
    Consider why you would use a UserForm instead of just cells.
    You got /5 concepts.