+ Reply to Thread
Results 1 to 2 of 2

Autocomplete based on a range in another column

  1. #1
    Registered User
    Join Date
    08-29-2013
    Location
    Canada
    MS-Off Ver
    Excel 2016
    Posts
    67

    Autocomplete based on a range in another column

    I need to input column B text values regularly, and for convenience as I type fast and hate using the mouse to interrupt the input flow I'd like to have column B autocompleting based on a list from J3:J31. The text values in this J list are a bit long and many somewhat similar to one another, so if I am typing in B5 "Deposit for Hec" and there are only "Deposit for Henry Name" and "Deposit for Hector Name" in the J list, it should autocomplete for Hector, and so forth.

    Thank you for any help!

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Autocomplete based on a range in another column

    You need a macro with a key press event.

    That is not available in a worksheet or a workbook.

    What if selecting a cell in column B opened a userform for you to type into?

    Ok this should get you started.

    I used a sheet specific macro to open the userform when you select a cell in column B
    Right Click on the sheet name at the bottom of excel and select view code.
    Paste this code in the module and close it.


    Please Login or Register  to view this content.

    I then created a userform with one textbox and one Listbox.

    Please Login or Register  to view this content.

    The above does what you described.

    However if we add the following code

    You can select text simply by clicking on a line in the Listbox.

    Please Login or Register  to view this content.

    Ok I have tidied up the code in this sample workbook.
    Attached Files Attached Files
    Last edited by mehmetcik; 08-02-2017 at 02:00 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

+ 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. autocomplete for different column
    By azbi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-17-2016, 12:45 AM
  2. Autocomplete across row, not column
    By mayqlaf in forum Excel General
    Replies: 1
    Last Post: 08-03-2014, 10:02 PM
  3. AutoComplete based on value in either of 3 cells
    By CindyG in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-17-2011, 07:32 PM
  4. Replies: 1
    Last Post: 11-16-2008, 02:54 PM
  5. Autocomplete based on a different column
    By DDR2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-01-2008, 04:33 AM
  6. Forcing autocomplete to lookup from a range of cells
    By Nick Hebb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2005, 07:06 PM
  7. Replies: 0
    Last Post: 01-04-2005, 09:35 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