Performance - autofilter vs loop

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have certain text in report header/footer that I do formatting with a
macro. I was just curious about the performance of autofilter vs looping
through the report. For smaller reports, it may not matter much. How about
for larger reports? Any preference?
 
I have a current report with over 5000 rows... I tried looping through it and
it took fooooooorever. When I switched it to a formula and copied the formula
down to Range.End(xlDown).Row, it cut the time by about 90 times faster.

I only loop now if it's my last and best option and it's small enough to
maintain.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top