Wild card suggestions in a textbox

Yusuf

Active Member
Joined
Jun 1, 2004
Messages
337
Hi everyone

I have various lists of tools with different sku numbers which are very similar and at the moment, we are using Ctrl+F but very often we do not get the result because the first six characters are the same for many but the last three change.

Example, 123000123, 123000456, 123000789, 123000246

I was using Google and as I keyed "Mr E" then suggestions came up below and "Mr Excel" was the first in the selection.

Can this be done with VBA code using a Textbox for entries and a Listbox to display suggestions. The difference will be that the Listbox requires two columns. One for the suggestion and the second for the SKU number.

For example, if I keyed the word "hammer" then suggestions like "Short Hammer", "Plastic Hammer" or even "Hammer Head" or "Hammer Shaft" with the SKU number beside each.

Any help will be greatly appreciated.

Regards
Yusuf
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Thanks Charles

Do you have a basic example of code please.

Form1:
Textbox1, Listbox1,
Data:
Sheet1, A1:B5

Regards
Yusuf
 
Upvote 0
Hi everyone

Does anyone have some tips or code extract to use the * before and after the keyed letters.
I'm not sure how the letter triggers the code to produce the wild card results.

Regards
Yusuf
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,749
Members
452,940
Latest member
rootytrip

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