+ Reply to Thread
Results 1 to 5 of 5

Redim on two dimentional array

  1. #1
    Registered User
    Join Date
    11-21-2012
    Location
    Al Ain, UAE
    MS-Off Ver
    Excel 2003
    Posts
    16

    Redim on two dimentional array

    Hi,

    I want to create a 2 dimentional array which i want to update with loop.

    the size will be decided while running the program.

    How can i use redim and preserve each time when i insert values to array at run time.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,633

    Re: Redim on two dimentional array

    See here

    http://www.excelforum.com/excel-prog...crementer.html

  3. #3
    Registered User
    Join Date
    11-21-2012
    Location
    Al Ain, UAE
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Redim on two dimentional array

    Can u explain? i am new to vba

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,633

    Re: Redim on two dimentional array

    Explain what?

    What do you not understand or what do you understand about Arrays?

  5. #5
    Registered User
    Join Date
    11-21-2012
    Location
    Al Ain, UAE
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Redim on two dimentional array

    Thanks for you help.
    I found that in a multidimentional array only the last field can be redimensioned, i.e the right most.
    Eg: NewArray(50, 20)
    from the above example 50 remains fixed and 20 can be re-dimension.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Using the ReDim array function in a multidimensional array in excel
    By Doruli in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-05-2012, 01:43 PM
  2. 2 Dimentional Array as Dictionary Item
    By erock24 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-05-2011, 11:13 AM
  3. Pass two dimentional array to a function
    By SpringLily in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-08-2010, 05:24 AM
  4. Assign sheet value to array... and redim the array size
    By Orange.CL in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2010, 07:18 AM
  5. [SOLVED] ReDim Object array as parameter of Variant array
    By Peter T in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-10-2005, 10:06 AM

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