I'm working with Excel & VBA i've create a form with some text box and I would like to use the information typed inside. I've got this code :
Dim Val2 As String
Val2 = TextBox2.Text
Dim Val3 As String
Val3 = TextBox3.Text
Selection.AutoFilter
Selection.AutoFilter Field:=3, strCriteria1 ="= " & Val2 & ", Operator:=xlAnd, _
Criteria2 = " & Val3 & "
But it seems not look inside the box.
I appreciate anyhelp:
Thanks Body.
Dim Val2 As String
Val2 = TextBox2.Text
Dim Val3 As String
Val3 = TextBox3.Text
Selection.AutoFilter
Selection.AutoFilter Field:=3, strCriteria1 ="= " & Val2 & ", Operator:=xlAnd, _
Criteria2 = " & Val3 & "
But it seems not look inside the box.
I appreciate anyhelp:
Thanks Body.