Quick .End(xlUp) Question

  • Thread starter Thread starter Dan R.
  • Start date Start date
D

Dan R.

If I know my data won't exceed 7 or 8 thousand rows, should I use
this?
iEnd = ws.Cells(10000, 9).End(xlUp).Row

Rather than this?
iEnd = ws.Cells(65536, 9).End(xlUp).Row

Or does it really not make much of a difference (speedwise)?

Thanks,
-- Dan
 
iEnd = ws.Cells(rows.count,9).End(xlup).row

I don't know the inner workings of Excel, but I don't think there is an
appreciable difference from a practical standpoint.
 

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