Filter as you type AUTO hide un-wanted row

jimmy1986

New Member
Joined
May 16, 2021
Messages
36
Office Version
  1. 365
I created texbox with VBA code is:
Private Sub TextBox1_Change()
Application.ScreenUpdating = False
ActiveSheet.ListObjects("states").Range.AutoFilter Field:=1, Criteria1:="*" & [B3] & "*", Operator:=xlFilterValues
Application.ScreenUpdating = True
End Sub

I linked this text box to cell B3
I want to filter the number . It was not working . I have to choose column B , go to DATA - TEXT TO COLUMN - NEXT - NEXT - choose TEXT - FINISH
Then I have to IGNORE THIS ERROR ( annoying) the whole column B to convert number to TEXT.
But I do not know why EXCEL hide ROW 14, 15 every time I put number 7 in the textbox to filter
Please help me . Can we filter the column B as a Number Value ( I dont need to change whole coumn to TEXT).
AND can someone fix the problem auto hide row like I said above.
Any help would be Appriciated .

1
stt
7
NUMBERTEXTTEXT2TEXT3
7abcd6aabcd
7abcd6babcd
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,214,924
Messages
6,122,293
Members
449,077
Latest member
Rkmenon

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