+ Reply to Thread
Results 1 to 8 of 8

Can some one explain what this part of the code is actually doing?

  1. #1
    Forum Contributor
    Join Date
    01-27-2015
    Location
    New hampshire
    MS-Off Ver
    excel 2013
    Posts
    143

    Can some one explain what this part of the code is actually doing?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Can some one explain what this part of the code is actually doing?

    I looks like it is given a delimited string, Records

    Which it then splits into Lines (vbCrLf & vbCrLf delimited)
    Each line is then split into Fields( | delimited) and the first field and last field are put into an array called Data.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Forum Contributor
    Join Date
    01-27-2015
    Location
    New hampshire
    MS-Off Ver
    excel 2013
    Posts
    143

    Re: Can some one explain what this part of the code is actually doing?

    thank youV do you know hiw I could change this code so it only takes the the array data for the portion in red... cause right now is is taking the whole text file and I don't want it to

    Please Login or Register  to view this content.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,353

    Re: Can some one explain what this part of the code is actually doing?

    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Forum Contributor
    Join Date
    01-27-2015
    Location
    New hampshire
    MS-Off Ver
    excel 2013
    Posts
    143

    Re: Can some one explain what this part of the code is actually doing?

    and the last line not in red is not a mistake
    Last edited by Jenkins27; 03-02-2015 at 07:04 PM.

  6. #6
    Forum Contributor
    Join Date
    01-27-2015
    Location
    New hampshire
    MS-Off Ver
    excel 2013
    Posts
    143

    Re: Can some one explain what this part of the code is actually doing?

    thank you guys

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,353

    Re: Can some one explain what this part of the code is actually doing?

    The code was an explanation, not a modification.

    I think you need to provide an actual text file, not transcribe the text into the thread. The Cr and Lf characters are not present in the text in the thread. It is, therefore, difficult to test the code in order to determine a) if it works, b) how it works and c) what to look for.

    Regards, TMS

  8. #8
    Forum Contributor
    Join Date
    01-27-2015
    Location
    New hampshire
    MS-Off Ver
    excel 2013
    Posts
    143

    Re: Can some one explain what this part of the code is actually doing?

    here is the text file thank you for your help
    Attached Files Attached Files

+ 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. Can some ome explain what this part of the code is actually doing?
    By Jenkins27 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-02-2015, 07:22 PM
  2. Can some one explain this code for me ?
    By chriskingkiller in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-10-2013, 02:14 PM
  3. Can some one explain this code for me ?
    By chriskingkiller in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-10-2013, 12:41 AM
  4. Replies: 2
    Last Post: 03-09-2013, 04:30 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