+ Reply to Thread
Results 1 to 9 of 9

list box and text box --drop down and selection problem

  1. #1
    Forum Contributor
    Join Date
    07-07-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    256

    list box and text box --drop down and selection problem

    Dear Friends

    I have a very good excel of selecting a list of names which are already feeded in the column AM.
    When i enter a first few letters in column D where i want to enter a name ,a drop down will come like GOOGLE SEARCH and we can pick up a name by just clicking on it
    but the PROBLEM is if there is no name in the list which we are looking for i have to type the full name and DOUBL CLICK it so that it will sit in the cell.

    Here what i want is if i type a name which is not there in the list ,instead of double clicking that name,jsimply clicking enter or tab after punching the name that particular cell should catch the name ...because double clik make it time consuming when we enter 300+ records

    I have attached the list

    I greatly hope some excell genius over here can surely do this and help me
    Kindly help me to solve my problem sir

    Narayanan
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: list box and text box --drop down and selection problem

    ok so i think i understand what your asking
    type something into textbox1 and press Enter to trigger
    it will place whatever it in textbox into last row of column D


    Please Login or Register  to view this content.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: list box and text box --drop down and selection problem

    Hi Narayanan,
    Re your PM
    please check the attachment
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    07-07-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    256

    Re: list box and text box --drop down and selection problem

    Hai humdingaling i am so much thankful to you ...it is very nice..Can u do a small change so that if i either enter "enter key" or "tab key" it can work

    Thanking you
    Narayanan

  5. #5
    Forum Contributor
    Join Date
    07-07-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    256

    Re: list box and text box --drop down and selection problem

    Hai Nilem sir now your product (the entire thing which u gave me about one year ) is so wonderful ..Not it is even more beautiful sir.
    thanking you so much

  6. #6
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: list box and text box --drop down and selection problem

    in the IF loop put OR keycode = vbKeyTab as well


    list of vbkeycodes
    http://msdn.microsoft.com/en-au/libr...(v=vs.60).aspx

  7. #7
    Forum Contributor
    Join Date
    07-07-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    256

    Re: list box and text box --drop down and selection problem

    Hai Nilem sir one small request is it possible to make a few changes like
    Now when we press enter key "it moves down wards"
    changes may be like
    1.tab or enter means going right side
    2 and activating left right up down arrrow also

  8. #8
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: list box and text box --drop down and selection problem

    Hi Narayanan,
    let's try to change a couple of lines of code
    this line in Private Sub TextBox1_KeyDown(...)
    Please Login or Register  to view this content.
    change to
    Please Login or Register  to view this content.
    and this line in Private Sub Worksheet_SelectionChange(...)
    Please Login or Register  to view this content.
    change to this lines
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    07-07-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    256

    Re: list box and text box --drop down and selection problem

    Dear Nilem Sir

    All the credits go to you sir.
    thank u very much for your help

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Autolock Cells from a Drop Down List Selection and a Calendar Selection
    By John Anderson in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-04-2013, 10:54 AM
  2. Populate Drop-down list based on selection from previous drop-down list
    By Diventus in forum Excel - New Users/Basics
    Replies: 14
    Last Post: 01-11-2013, 10:55 AM
  3. Populate Drop-down list based on selection from previous drop-down list
    By poison_stone in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-11-2012, 06:10 PM
  4. [SOLVED] Hide columns depending on a text selection in a drop-down list
    By hvide makelele in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2012, 04:00 PM
  5. [SOLVED] Drop Down List Selection Changes the Text Below
    By EXCELlent2 in forum Excel General
    Replies: 10
    Last Post: 04-13-2012, 12:26 PM

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