problem with userform

harshab6

Active Member
Joined
Oct 1, 2008
Messages
254
Hi Experts,
I am Preparing a Userform with text boxes inorder to filter a huge data(nearly 100000 lines) I have given following code In Command Button )
Private Sub CommandButton2_Click()
Sheets("sheet3").Select
Selection.AutoFilter Field:=4, Criteria1:="=*" & TextBox1.Text & "*", Operator:=xlAnd
End sub
I have never created the userforms before this is first time.The code which I have mentioned above doesnot work as per my need.though it filters it doesnot select all the data in the sheet out of 100000 lines it selects only 70000 lines and in task bar it shows as 70000 of 100000 lines selected but if I manually filter all the 100000 lines will be selected and the data in excel sheet are almost in same format only values differ . I am trying from almost a week to correct it but fialed.Can anyone help me with this.I need to submit this project today to my manager.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,224,606
Messages
6,179,862
Members
452,948
Latest member
UsmanAli786

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