Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / September 2007

Tip: Looking for answers? Try searching our database.

TRANSPOSE and INDEX limit in Excel2007

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alan Beban - 12 Sep 2007 21:56 GMT
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
Jim Rech - 12 Sep 2007 22:01 GMT
65535 - ok ok
65537 - transpose doesn't work  index doesn't work

Signature

Jim

| Could someone run the following code in Excel2007 with n=65535 and then
| n=65537 and report the results?
[quoted text clipped - 21 lines]
| Thanks,
| Alan Beban
Alan Beban - 13 Sep 2007 01:02 GMT
> 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.