Complete the code to open the VBA editor using a keyboard shortcut.
Press [1] + F11 to open the VBA editor in Excel.
The correct shortcut is Alt + F11 to open the VBA editor in Excel.
Complete the code to insert a new module in the VBA editor.
In the VBA editor, click on the [1] menu, then select 'Module'.
To insert a new module, you use the Insert menu in the VBA editor.
Fix the error in the code to run a macro from the VBA editor.
To run a macro, press [1] or click the Run button.
The correct key to run a macro in the VBA editor is F5. Pressing Ctrl + R opens the Project Explorer, so that is incorrect.
Fill both blanks to declare a variable in VBA with the correct type.
Dim [1] As [2]
In VBA, you declare a variable with Dim, then the variable name, then As and the type. For example, Dim myNumber As Integer.
Fill the blanks to write a simple VBA subroutine that shows a message box.
Sub [1]() [2] "Hello, world!" End Sub
This VBA subroutine is named ShowMessage. Inside, it calls MsgBox "Hello, world!" to show a message box.