Progress Bar

Senthil Murugan

New Member
Joined
Sep 25, 2024
Messages
48
Office Version
  1. 365
Platform
  1. Windows
Dear All

I have more than 50000 lines & I want to extract rows based on Criteria in one column ( Extraction to another sheet )
As it is time consuming , i need help to create Progress bar during macro running for extracting rows

Thanks
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
You will need to change this code to fit in with your worksheets, data, criteria etc

I just had a range of values of 1 to 50000.

This uses the worksheet function FILTER which is really quick.

VBA Code:
Private Sub subFilterData()

  With Worksheets("Results")
    .Range("A:A").ClearContents
    .Range("A1").Formula2 = "=FILTER(Data!A2:A50001,Data!A2:A50001>=10000,"""")"
    .Range("A:A").Value = .Range("A:A").Value
  End With
  
End Sub
 
Upvote 0
You will need to change this code to fit in with your worksheets, data, criteria etc

I just had a range of values of 1 to 50000.

This uses the worksheet function FILTER which is really quick.

VBA Code:
Private Sub subFilterData()

  With Worksheets("Results")
    .Range("A:A").ClearContents
    .Range("A1").Formula2 = "=FILTER(Data!A2:A50001,Data!A2:A50001>=10000,"""")"
    .Range("A:A").Value = .Range("A:A").Value
  End With
 
End Sub
Thank you sir
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,179
Members
453,021
Latest member
Justyna P

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