Auto Filter help

kenjohnson_342

Board Regular
Joined
Feb 14, 2007
Messages
69
What I got: worksheet with a bunch of part numbers, descriptions and prices etc that less Excel-Saavy coworkers use all day long.
With 10 columns wide by 10,000 rows deep we use it to quote customers over the phone. I've tried over and over to explain how the "FIND" function works but no go.
I then created a VLOOKUP scenario where they could input the part number to get the info they need, however it has to be an exact match. Sometimes there are suffexes to part numbers that make that difficult.

Wet dream...
I would love to create an input box or a cell, where it could trigger the auto-filter function.
So user enters "CBQ" into the box or cell and it would auto-filter the part column for instances where it contains "CBQ". That would capture all part numbers with or without suffexes.

I have very little experience with programming and writing macros and control boxes. So a complicated vba option won't work well for me. Anybody have any good suggestions for me?

Thanks, Ken.
 
You can include the password as an argument:

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address <> "$B$1" Then Exit Sub
    Me.Unprotect Password:="yourpassword"
    Range("$A$8:$L$8948").AutoFilter Field:=1, Criteria1:="=*" & Target.Value & "*", Operator:=xlAnd
    Me.Protect Password:="yourpassword"
End Sub

Change yourpassword to suit.
 
Upvote 0

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Perfect! Absolutely perfect.

Thank you very much for your help. I love this program and I know there is so much potential with VBA.

Thanks again, Ken.
 
Upvote 0

Forum statistics

Threads
1,214,523
Messages
6,120,038
Members
448,940
Latest member
mdusw

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