Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 783
Default TRANSPOSE and INDEX limit in Excel2007

Could someone run the following code in Excel2007 with n=65535 and then
n=65537 and report the results?

Sub abtest1
Dim arr1(), arr2(), iVar, n
n = 65535
'n = 65537
ReDim arr1(1 To n, 1 To 1)
arr1(4, 1) = "ok"
On Error Resume Next
arr2 = Application.Transpose(arr1)
If Err < 0 Then
MsgBox "Transpose doesn't work"
Err = 0
End If
iVar = Application.Index(arr1, 4, 1)
If Err < 0 Then
MsgBox "Index doesn't work"
Err = 0
End If
Debug.Print arr2(4), iVar
End Sub

Thanks,
Alan Beban
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default TRANSPOSE and INDEX limit in Excel2007

65535 - ok ok
65537 - transpose doesn't work index doesn't work

--
Jim
"Alan Beban" wrote in message
...
| Could someone run the following code in Excel2007 with n=65535 and then
| n=65537 and report the results?
|
| Sub abtest1
| Dim arr1(), arr2(), iVar, n
| n = 65535
| 'n = 65537
| ReDim arr1(1 To n, 1 To 1)
| arr1(4, 1) = "ok"
| On Error Resume Next
| arr2 = Application.Transpose(arr1)
| If Err < 0 Then
| MsgBox "Transpose doesn't work"
| Err = 0
| End If
| iVar = Application.Index(arr1, 4, 1)
| If Err < 0 Then
| MsgBox "Index doesn't work"
| Err = 0
| End If
| Debug.Print arr2(4), iVar
| End Sub
|
| Thanks,
| Alan Beban


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 783
Default TRANSPOSE and INDEX limit in Excel2007

Jim Rech wrote:
65535 - ok ok
65537 - transpose doesn't work index doesn't work

Thank you, Jim. That's interesting. In the excel.misc group, Roger
Govier replied
"Code runs and produces the debug result
ok ok"

I guess he didn't try it with n=65537.

Thanks again,
Alan Beban
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
xl2007 limits on TRANSPOSE and INDEX functions? Alan Beban[_2_] Excel Programming 0 September 12th 07 01:37 AM
Using Index to Transpose, Update Reference Cells as you Drag Down stevec Excel Worksheet Functions 3 October 18th 06 03:45 AM
Array size limit when using WorksheetFunction.Transpose? Ken Johnson Excel Programming 5 August 7th 06 11:21 PM
I WANT TO TRANSPOSE LINKS, AS WE TRANSPOSE VALUES Umair Aslam Excel Worksheet Functions 1 September 22nd 05 01:19 PM
Nested IF limit or Open parentheses limit Fred Excel Discussion (Misc queries) 5 December 23rd 04 03:34 PM


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