Results 1 to 14 of 14

add one dimension to array

Threaded View

  1. #1
    Registered User
    Join Date
    10-04-2014
    Location
    israel
    MS-Off Ver
    2010
    Posts
    24

    add one dimension to array

    hi

    i want to add one dimension to an array
    here is part of the code

    sub Add_dimansion()
    
    dim Y() as string
    y()=split("1,2,3,4,5,6,7,8,9",",")        ' here i have one dimension array with 10 elements
    for i=0 to Ubound(y)                     ' for i=0 to the last element number of the Y() array
    Array2(0,i)=Y(i)                           'now i am just want to create a new 2 dimensional array(in this case the first element is 0 and only the second changed)  
    next i
    end sub
    any way...i receive an error
    any help?

    thanks
    Last edited by shaykos; 12-03-2015 at 02:48 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel: Sum each dimension of an Array
    By cmore in forum Excel Programming / VBA / Macros
    Replies: 42
    Last Post: 06-08-2015, 11:35 PM
  2. [SOLVED] Sort a 2 dimension array
    By tradinup2 in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 02-28-2013, 10:29 AM
  3. Does filling part of an array from a range re-dimension the array?
    By barryleajo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-04-2011, 10:09 AM
  4. Cycling through 1 dimension of an array
    By Phil_V in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-17-2009, 09:51 AM
  5. Array dimension declaration
    By yellephant in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-29-2007, 08:44 AM
  6. Array dimension
    By Henrietta Klaus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-21-2006, 11:10 AM
  7. Mutli-dimensional Array to Single-Dimension Array
    By Blue Aardvark in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-15-2005, 05:05 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