How to start VBA in Excel ?
First enable the developer tab in Excel 2007 to follow below steps:
-
Open Excel 2007 and create 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 develper tab in the ribbon".
-
Then you find the developer tab as in the following:
-
Click visualbasic, select the sheet1 and write the code attached in this article.
-
Select the dropdownlist; it will be automatically updated into the next sheet through the help of the following code:
Private Sub Worksheet_Change(ByVal Target As Range)
<process
End Sub
Securities :
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.