How to start VBA in Excel?
First, enable the developer tab in Excel 2007 to follow the below steps.
- Open Excel 2007 and create a new worksheet.
- In the menu, just right-click any tab.
- In that, click "Customize Quick Access Toolbar".
- Move to the popular section and click the option "Show developer tab in the ribbon".
- Then you find the developer tab in the following.
- Click Visualbasic, select sheet 1, and write the code attached to this article.
- Select the dropdown list; it will be automatically updated into the next sheet with the help of the following code.
Private Sub Worksheet_Change(ByVal Target As Range)
' Your code processing here
End Sub
Note. In Excel 2007 to 2010, use the "Developer" ribbon click on the "Macro Security" button. Check the second level "Disable all Macros with Notification," and you are set.
Conclusion
With the help of VBA, it is a very user-friendly development environment. VBA procedures developed in the VB Editor and its the part of workbook in which they are developed and saved the VBA components.