+ Reply to Thread
Results 1 to 3 of 3

String to multidimensional array

  1. #1
    Registered User
    Join Date
    12-11-2006
    Posts
    3

    String to multidimensional array

    Hi,
    I was using Evaluate to translate a string in format of {1,2,3;4,5,6} into multi dimensional array in VBA.

    But it seems that Evaluate fails (Error 2015) when the input string is longer than 255 characters.

    How else can I have a string turned into a multi dimension array?

    Any help appreciated.

    For example

    Please Login or Register  to view this content.
    This works fine, it returns an array.

    But

    Please Login or Register  to view this content.
    Gives an error because it is longer than 255 characters

    I need to get this into a 2d array though.

    Cheers,
    Rob

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: String to multidimensional array

    QldRobbo,

    Can we see examples of your raw data?

    Please post your workbook (or a sample) with before and after results - scroll down and see "Manage Attachments".
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: String to multidimensional array

    Not pretty ...
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

+ 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