ActiveX TextBox input for VBA search/filter

SPWlsd

New Member
Joined
Jul 22, 2014
Messages
2
I'm looking to create a VBA to filter the entries in a column (either strings or numbers) based on the input in a text box. Currently I was looking at using the ActiveX TextBox to hold the input. Ideally the function would search for partial matches as well as exact.

An example would be that the user inputs "er" in the text box and then any cell in the specified column with "er" in it would be shown and all other rows would be hidden. So 'Dover' and 'Ergonomic' (exact matches) would both be displayed as would 'Rob' and 'Age' (partial matches).

Even if you could just demonstrate how I could create a filter based on the input from the text box that would get me a lot closer.

Thank you in advance for your help.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,214,814
Messages
6,121,711
Members
449,049
Latest member
THMarana

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