Help with search as you type functionality

nithinkrishna2005

New Member
Joined
Sep 9, 2012
Messages
1
imgres
HI

I've been trying to use search as you type kind of functionality in one of my excel projects -- i could just find only combobox, which is very difficult to customize and a hassle dealing with huge data set. Is there an alternate which is more fast, and will limit the results to the ones which include only the characters that were typed, similar to the search box and the results box in auto filter.

Thanks,
Nithin.
 
Last edited:

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
i use such a combobox for loading town names. i wait until user types 3 characters then load select list from full list and display.

eg
make an array called MyList. you may need to index it if you have a large list. mine has about 5000 and works without index at speed.

Code:
    Sub Textbox1_Change
        if len(textbox1.value)=3 then
            combobox1.clear
            For myrow=1 to ubound(mylist)
                if textbox1.value=left(mylist(myrow),3) then
                    combobox1.additem mylist(myrow)
                 end if
             Next myrow
             combobox1.visible=true
        End if
    End sub
 
Upvote 0

Forum statistics

Threads
1,215,348
Messages
6,124,425
Members
449,157
Latest member
mytux

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