This Excel tutorial explains how to open the Visual Basic Editor in Excel 2013 (with screenshots and step-by-step instructions).
Starting from Excel 2010, you can customize the ribbon itself, adding new tabs and new groups. We'll do that in the next lesson. If you only have Excel 2007, then here's how to launch your form from the Quick Access toolbar. First, we need to create new Sub in the Excel VBA Editor. We can then add our UserForm1.Show code to this Sub.
See solution in other versions of Excel:
How to open the VBA environment
You can access the VBA environment in Excel 2013 by opening the Microsoft Visual Basic for Applications window.
First, be sure that the DEVELOPER tab is visible in the toolbar in Excel.
The DEVELOPER tab is the toolbar that has the buttons to open the VBA editor and create Form/ActiveX Controls like buttons, checkboxes, etc.
To display the DEVELOPER tab, click on FILE in the menu bar and select Options from the drop down menu.
When the Excel Options window appears, click on the Customize Ribbon option on the left. Click on the Developer checkbox under the list of Main Tabs on the right. Then click on the OK button.
Select the DEVELOPER tab from the toolbar at the top of the screen. Then click on the Visual Basic option in the Code group.
Now the Microsoft Visual Basic for Applications editor should appear and you can view your VBA code.