How to filter Listview with numbers

jqfranco

New Member
Joined
Dec 27, 2017
Messages
28
Good afternoon
In Excel365 I have a listview with several columns, one of which is sequential numbers. In the table this column is like "Number"
I can filter the listview of all columns, except in this column of sequential numbers.
The criterion is placed in a textbox and I've tried converting it to text and number and it doesn't filter. LView is always clean and on the sheet, hides all lines.

Folha20.ListObjects("BDR_Casas").Range.AutoFilter Field:=1, Criteria1:="=*" & v_Multipage2.TextBox_P02_Casas & "*", Operator:=xlAnd

Thank you for your help.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
VBA Code:
Folha20.ListObjects("BDR_Casas").Range.AutoFilter 1, "*" & v_Multipage2.TextBox_P02_Casas.value & "*"

This is not working either?
 
Upvote 0
VBA Code:
Folha20.ListObjects("BDR_Casas").Range.AutoFilter 1, "*" & v_Multipage2.TextBox_P02_Casas.value & "*"

This is not working either?
It doesn't work either.
If I look for "2" in the sequential numbers column, it hides all the rows, but if I look for "2" in a column formatted as Currency, it works.
 
Upvote 0
This has to work, maybe adapt some names, but this is the way

VBA Code:
Sub jj()
 With Folha20.ListObjects("BDR_Casas")
   .Range.AutoFilter 1, Filter(Application.Transpose(.DataBodyRange.Columns(1)), CStr(v_Multipage2.TextBox_P02_Casas.Value), True), 7
 End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

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