SIGN UP MEMBER LOGIN:    
ARTICLE

Excel DropDownlist change Event Using VBA

Posted by Vasanth Articles | Articles C# March 26, 2010
Here the articles describes how to handle the worksheet change event using VBA. The Visual Basic Editor is a program within Excel that allows you to communicate with Excel.
Reader Level:
Download Files:
 

How to start VBA in Excel ?

First enable the developer tab in excel 2007 to follow below steps:

  1. Open excel 2007 and create new worksheet.
  2. In menu , just right Click any of the tab.
  3. In that , click 'Customize Quick Access Toolbar'
  4. Move to popular section , and click option 'Show develper tab in the ribbon'.
  5. Then you find developer tab as like view.

    Excel_developer_tab.gif
     
  6. Click visualbasic ,select the sheet1 and write and code which as attached in this articles.

    DropDownlist_Event.gif
     
  7. Select the dropdownlist , it will automatically update into the next sheet through the help of below 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 .
 

Login to add your contents and source code to this article
share this article :
post comment
 

What's the password to the code for the downloaded file? It is asking for a password.

Posted by Seniloli Koroi Jan 19, 2012
Team Foundation Server Hosting
Become a Sponsor
PREMIUM SPONSORS
  • ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
    The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
Nevron Gauge for SharePoint
Become a Sponsor