CodeUser1549
New Member
- Joined
- May 26, 2010
- Messages
- 3
Hello Everyone,
I have a fairly standard macro that uses autofilters using different variables to filter out the data, but then after that it needs to manipulate the rows that still visible, I have found this basic code from other posts that moves down the data untill it reaches a visible row:
Do Until ActiveCell.EntireRow.Hidden = False
ActiveCell.Offset(1, 0).Select
Loop
This code works fine but the problem is that its a very large data set (up to 26,000 rows) so even using a macro takes a fairly long amount of time to find the visible rows using this method (ex. when row 25000 250001 and 250002 are the only ones that meet the criteria it has to go from 1 to 25000 row by row). Is there any code that is possibly more efficent then that above.
Thanks
I have a fairly standard macro that uses autofilters using different variables to filter out the data, but then after that it needs to manipulate the rows that still visible, I have found this basic code from other posts that moves down the data untill it reaches a visible row:
Do Until ActiveCell.EntireRow.Hidden = False
ActiveCell.Offset(1, 0).Select
Loop
This code works fine but the problem is that its a very large data set (up to 26,000 rows) so even using a macro takes a fairly long amount of time to find the visible rows using this method (ex. when row 25000 250001 and 250002 are the only ones that meet the criteria it has to go from 1 to 25000 row by row). Is there any code that is possibly more efficent then that above.
Thanks