+ Reply to Thread
Results 1 to 3 of 3

MultiDimensional Dynamic Arrays

  1. #1
    Registered User
    Join Date
    03-02-2006
    Posts
    1

    MultiDimensional Dynamic Arrays

    Does VBA support MultiDimensional Dynamic Arrays? If so, can you tell me how to set it up. If not, is there a backdoor way to accomplish the same thing? Thanks

  2. #2
    Bob Phillips
    Guest

    Re: MultiDimensional Dynamic Arrays

    Yes, but only one dimension, the last, can be dynamic.

    You create like so

    Dim ary

    Redim ary (1 To 10, 1 To 15, 1 To 1)
    'some code to determine what it should be
    Redim ary (1 To 10, 1 To 15, 1 To n)

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "TomR29" <TomR29.241axa_1141289401.8577@excelforum-nospam.com> wrote in
    message news:TomR29.241axa_1141289401.8577@excelforum-nospam.com...
    >
    > Does VBA support MultiDimensional Dynamic Arrays? If so, can you tell
    > me how to set it up. If not, is there a backdoor way to accomplish the
    > same thing? Thanks
    >
    >
    > --
    > TomR29
    > ------------------------------------------------------------------------
    > TomR29's Profile:

    http://www.excelforum.com/member.php...o&userid=32064
    > View this thread: http://www.excelforum.com/showthread...hreadid=518140
    >




  3. #3
    Kris
    Guest

    Re: MultiDimensional Dynamic Arrays

    TomR29 wrote:
    > Does VBA support MultiDimensional Dynamic Arrays? If so, can you tell
    > me how to set it up. If not, is there a backdoor way to accomplish the
    > same thing? Thanks
    >
    >

    Use collection class

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1