Auto Complete

p9j123

Active Member
Joined
Apr 15, 2014
Messages
288
Office Version
  1. 2013
Platform
  1. Windows
I have a list of words in Sheet2 column A.

I have a dropdown list using data validation in Sheet1[R9], I would need help in making R9 auto complete when I type some value that matches the list without me using the mouse to use the dropdown or typing the entire word.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
You willneed to use a Combo box instead of a Dropdown list.
Have a read here for complete instructions on how to do it ....including the code required

 
Upvote 0
change the listfill range

VBA Code:
With xCombox
        .ListFillRange = "" 'change to the source data
        .LinkedCell = ""
        .Visible = False
    End With
 
Upvote 0
Thanks, I am having compile error saying "Cancel" variable not defined

VBA Code:
If Target.Validation.Type = 3 Then
        Target.Validation.InCellDropdown = False
      Cancel  = True
        xStr = Target.Validation.Formula1
        xStr = Right(xStr, Len(xStr) - 1)
        If xStr = "" Then Exit Sub
 
Upvote 0
Where did cancel come from?

There is no cancel in the code on the page that Michael pointed you to (cancel doesn't belong in a worksheet change event).
 
Upvote 0
Another way:
A searchable combobox without using data validation, and it can be applied to multiple cells, you can find an example here:
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,279
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top