+ Reply to Thread
Results 1 to 5 of 5

Need a inputs to solve the scenario in VBA of Data Validation List?

  1. #1
    Registered User
    Join Date
    01-21-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    7

    Need a inputs to solve the scenario in VBA of Data Validation List?

    Hi,

    Recently one of my superior called me and said me to solve the new scenario which is completely different to my subject(Dotnet). He said to create a Drop Down List in Excel. By googling i created a Simple Drop Down List. But the Questions is
    1. He needs a drop down list as "Apple, Mango, Grapes". If the user selects Apple or Mango or Grapes it has to be copied to next sheet in any cell.

    I am very new to VBA, my question is whether it can be achievable or not because i dont know that excel drop down list has selected event or not?. Frankly speaking as i am a programmer, i used to do Selected Event in C#.NET for Drop Down List. Could any one suggest me that how to do this? If possible any one post me a sample code or at least steps to do?

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Need a inputs to solve the scenario in VBA of Data Validation List?

    What kind of drop down list are you using?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Need a inputs to solve the scenario in VBA of Data Validation List?

    Hi BhuvanRam,

    See the attached file where I have a data validation list (as suggested by you) in sheet 1, cell a1 and when you select any of the item in this list, the value transfers to Sheet 2.
    To view the code, press Alt + F11 from Excel window and double click on sheet1.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  4. #4
    Registered User
    Join Date
    01-21-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Need a inputs to solve the scenario in VBA of Data Validation List?

    Hi Dilipandey,


    Thanks a lot, and i understood from your sheet is that for every selection in data list refreshes the worksheet...
    Last edited by BhuvanRam; 01-22-2012 at 11:22 AM.

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Need a inputs to solve the scenario in VBA of Data Validation List?

    You are welcome BhuvanRam...

    It can be same sheet as well but I believe you need to send a sample file with all the possible scenarios to explain what you are looking for. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1