Progress Bar

Senthil Murugan

New Member
Joined
Sep 25, 2024
Messages
38
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

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
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,223,908
Messages
6,175,304
Members
452,633
Latest member
DougMo

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