Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 269
Default Built-in Excel constant for maximum number of rows, for columns?

Are there built-in Excel constants for maximum number of rows, for columns?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Built-in Excel constant for maximum number of rows, for columns?

AFAIK no and don't see how a constant would be viable. The number of rows &
columns in a sheet is version dependant. Although versions 8-11 have 65536 x
256, earlier versions have less and I understand XL12 will have considerably
more.

nRows = ActiveSheet.Rows.Count
nCols = ActiveSheet.Columns.Count

Regards,
Peter T


"Howard Kaikow" wrote in message
...
Are there built-in Excel constants for maximum number of rows, for

columns?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Built-in Excel constant for maximum number of rows, for columns?

Yes, Rows.Count and Columns.Count

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Howard Kaikow" wrote in message
...
Are there built-in Excel constants for maximum number of rows, for

columns?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Built-in Excel constant for maximum number of rows, for columns?

Note that these really aren't' constants, but are properties of the Rows
and Columns collection (which are child objects of Worksheet - not
qualifying them defaults to the ActiveSHeet).

Since the number of rows in a worksheet is version dependent, using this
method is superior to constants, since Rows.Count will return the number
of rows in the activesheet for XL4 (16757), and XL97-04 (65536) and will
return over 1,000,000 for XL12.

In article ,
"Bob Phillips" wrote:

Yes, Rows.Count and Columns.Count

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Howard Kaikow" wrote in message
...
Are there built-in Excel constants for maximum number of rows, for

columns?

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 269
Default Built-in Excel constant for maximum number of rows, for columns?

Ayup, I should have said "property", instead of "constant".

--
http://www.standards.com/; See Howard Kaikow's web site.
"JE McGimpsey" wrote in message
...
Note that these really aren't' constants, but are properties of the Rows
and Columns collection (which are child objects of Worksheet - not
qualifying them defaults to the ActiveSHeet).

Since the number of rows in a worksheet is version dependent, using this
method is superior to constants, since Rows.Count will return the number
of rows in the activesheet for XL4 (16757), and XL97-04 (65536) and will
return over 1,000,000 for XL12.

In article ,
"Bob Phillips" wrote:

Yes, Rows.Count and Columns.Count

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Howard Kaikow" wrote in message
...
Are there built-in Excel constants for maximum number of rows, for

columns?



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
DOES EXCEL HAVE a MAXIMUM NUMBER OF COLUMNS PER WORKBOOK? CJ Excel Discussion (Misc queries) 3 June 1st 10 06:16 PM
what is the maximum number of rows excel for mac 2008? kyle Excel Discussion (Misc queries) 1 March 21st 10 02:55 AM
what is the maximum number of rows excel for mac 2008 has? kyle Excel Discussion (Misc queries) 0 March 19th 10 07:00 PM
maximum number of rows in Excel 2007 ruis Excel Discussion (Misc queries) 2 April 10th 08 11:47 AM
Excel Constants for maximum number of rows, columns? Frank Jones Excel Programming 2 May 8th 04 12:26 PM


All times are GMT +1. The time now is 10:38 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"