searching for customer in a list

wahib

New Member
Joined
Nov 10, 2009
Messages
4
i have a list of customers. i want to search this list as i type in a cell
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
.
This macro goes in a regular module :

Code:
Sub FilterClear()
Dim sh As Shape
Application.ScreenUpdating = False


With ActiveSheet
On Error Resume Next


    ActiveSheet.ListObjects("Searchtable").Range.AutoFilter


    ActiveSheet.ListObjects("Searchtable").Range.AutoFilter
ActiveSheet.TextBox1.text = ""
.Range("A5").Select
End With
    Application.ScreenUpdating = True
End Sub


This goes in the Sheet level module :

Code:
Private Sub TextBox1_Change()
Application.ScreenUpdating = True
 ActiveSheet.ListObjects("SearchTable").Range.AutoFilter Field:=11, _
        Criteria1:="1", Operator:=xlFilterValues
        Application.ScreenUpdating = True
End Sub


Here is a link to download the workbook : https://www.amazon.com/clouddrive/share/CY5EOug7637S33BOSGQbr6Izf3SHBF9cAzWBIMReoAL

You can edit the column headers to suit your needs. Note the comments in yellow.
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,380
Members
449,080
Latest member
Armadillos

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