Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Excel needs to allow infinite rows and columns.

A small footnote, Rows.Count will refer to the activesheet, which is not a
problem unless your project includes chart sheets. Then you'll want to
qualify it

Sheet1.Range("A" & Sheet1.Rows.Count).End(xlUp)



"JLatham" wrote:

Bob,
Thanks a TON! for that - actually I hadn't ever used .End all that much at
all until stumbling into the forums here and found it being used as I
referenced it earlier, I actually cannot recall an instance of seeing it used
with the constant. What I learned about it I learned in these forums and I
won't mention any names (although I doubt the list would include yours). I
very much appreciate your response to this.

I concur: program it right and it'll last longer. I also say - teach it
right and fewer bad habits will get passed along to future generations.

"Bob Phillips" wrote:


"JLatham" <HelpFrom @ Jlathamsite.com.(removethis) wrote in message
...
I think we're going to need a bigger computer.

16K * 1M = 16GB just to hold one sheet full of nothing but a single
character in each cell. That's besides overhead to define the sheet and
addresses involved.



Bad practices will create problems in the future just as they always have.


But the addition of more rows was needed, and there have been situations

in
the past when 256 columns wasn't enough - mostly due to lack of foresight

on
my part, and having to transform all the data on a sheet because changes

made
long after the initial design ran me out of columns.


Yes, especially for a whole years of daily data, but did we really need 16K
and 1M?


One thing I've been wondering about is how the extended row numbers will
affect 'standard practice' functions like =Range("A65536").End(xlUp) - are
all of those going to have to change to Range("A1000000").End(xlUp) or I'm
hoping they will provide a constant that is Excel version-conscious to use

to
reference the highest numbered row on a sheet, maybe like Range(A &
xlLastPossibleRow).End(xlUp), where value of xlLastPossibleRow is

determined
by version of Excel.



If you had coded well, you would not have a problem. There has always been a
constant

Range("A" & Rows.Count).End(xlUp)

is future-proof.

Or you could use SpecialCells(xlCellTypeLastCell), now and in future.



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
Can I rotate data in Excel table (rows to columns, and vv)? Marcus Ricci Excel Discussion (Misc queries) 6 July 14th 08 04:11 PM
Rows & Columns in Excel seadragon69 Excel Worksheet Functions 2 December 7th 05 05:54 PM
Excel - Columns into rows Richard Pace New Users to Excel 5 March 19th 05 03:29 AM
Why does my excel have numbered columns and rows DLYNN Excel Discussion (Misc queries) 1 January 22nd 05 12:20 AM
Can I rotate excel sheets so columns are rows & vice-versa (i.e.. JamesR Excel Discussion (Misc queries) 3 January 12th 05 02:18 PM


All times are GMT +1. The time now is 11:17 AM.

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

About Us

"It's about Microsoft Excel"