Drop menu autocomplete

dado6612

Well-known Member
Joined
Dec 4, 2009
Messages
591
Hi to all

I've created a table to calculate distance between 2 regions.
There are 4 lists created with data validation, 2 of them use country names, defined with "trav" name, other 2 are regions which will show for corresponding country with indirect function. After selection, vlookup formula will check in which zones are selected regions. Finally, index/match will look how far are zones from eachother.
Hope you understand that, what I wish for now is to all 4 lists be autocomplete ones.
When user start to type first few letters of a country, first match would appear as result (CRO=Croatia)*. Same would work for region selection. User would type first few letters and region would come up**.

*If its possible to filter choices as user type.
Ex. "C" will bring Chile, China, Croatia
"Ch" Chile;China
"Chin" autocomplete China
**All mine previous formulas have to work after this new changes

Hope you understand
Thanks
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
You need to add an ActiveX combobox (under ActiveX controls when you click Insert on the Developer tab).
 
Upvote 0
Doesn't work cause I already have worksheet change in code for same sheet
Ambiguous name for Private Sub Worksheet_SelectionChange(ByVal Target As Range) and for Private Sub TempCombo_KeyDown(ByVal _
KeyCode As MSForms.ReturnInteger, _
ByVal Shift As Integer)
 
Last edited:
Upvote 0
same, cause of this part of code
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim str As String
Dim cboTemp As OLEObject
Dim ws As Worksheet
......
</pre>
 
Upvote 0
You can only have one Worksheet_SelectionChange event but you may be able to combine what you already have with what is in the link.
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,798
Members
452,943
Latest member
Newbie4296

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