• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Filter with a textbox value

Mr.Karr

Member
Hello

Can you please provide a code snippet to filter a column using a textbox value?
or you can also modify the below snippet.

Code:
ActiveSheet.ListObjects(1).Range.AutoFilter field:=1, Criteria1:="=*" & Me.TextBox2.Value & "*", Operator:=xlAnd

Please see the attached file.

Many thanks in advance.
 

Attachments

  • filter with a textbox value.xlsm
    16.5 KB · Views: 0
Hi,

Pls have some patience as we are helping here irrespective of urgency.

Check with attached.

Code:
ActiveSheet.ListObjects(1).Range.AutoFilter field:=3, Criteria1:="=*" & Me.TextBox1.Value & "*", Operator:=xlAnd
 

Attachments

  • filter with a textbox value.xlsm
    19.5 KB · Views: 2
@Deepak : pls note, what I requested is for Column A pls.
But you edited the existing snippet for column C which I have already. pls advise
 
Filter with a part of date may be difficult... Can you give some examples of the data you edit on the TexBox1 ?
 
Back
Top