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 theVisual Basic option in the Code group.
Now the Microsoft Visual Basic for Applications editor should appear and you can view your VBA code.