+ Reply to Thread
Results 1 to 5 of 5

file.txt split

  1. #1
    Registered User
    Join Date
    03-29-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    5

    file.txt split

    hi,

    I'm trying to split my file into arrays with a "," delimiter.

    however, when it's showing in the listbox, the only data that appears is the last data row in the file and it is repeated 3 times.

    my data looks like the following:
    1,blue,111,1000
    2,green,222,2000
    3,yellow,333,3000
    4,red,444,4000
    5,black,555,5000
    6,beige,666,6000

    and this is the code:
    Please Login or Register  to view this content.
    Thank you for your help
    Last edited by arlu1201; 03-29-2012 at 06:25 AM.

  2. #2
    Forum Contributor
    Join Date
    12-28-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    280

    Re: file.txt split

    Hi

    That isn't all your code - you need to show how you populate your InputData variable and any loop you use for that.

  3. #3
    Registered User
    Join Date
    03-29-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: file.txt split

    hi,

    this is all my code:

    Please Login or Register  to view this content.
    Last edited by arlu1201; 03-29-2012 at 06:25 AM. Reason: Use code tags in future.

  4. #4
    Forum Contributor
    Join Date
    12-28-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    280

    Re: file.txt split

    You don't need the For Next, but you do need to modify i on each iteration of the Do Loop - amend the For Next to:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-29-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: file.txt split

    cool, thank u! :D

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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