Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 220
Default Quick .End(xlUp) Question

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Quick .End(xlUp) Question

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.

--
Regards,
Tom Ogilvy



"Dan R." wrote:

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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 220
Default Quick .End(xlUp) Question

Thanks Tom, I'll use that.

Dan

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
End(xlUp) question CoolBusiness Excel Discussion (Misc queries) 4 March 26th 09 07:07 PM
Quick question - quick answer about assigning shortcut keys funkymonkUK[_75_] Excel Programming 1 October 13th 05 10:50 AM
Quick question DB100[_15_] Excel Programming 1 October 11th 04 03:06 PM
Question about "End(xlUp)" property Dave Peterson[_3_] Excel Programming 1 August 4th 03 04:24 AM
Question about "End(xlUp)" property Chip Pearson Excel Programming 0 August 4th 03 02:57 AM


All times are GMT +1. The time now is 09:48 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"