+ Reply to Thread
Results 1 to 4 of 4

Better method for reading really large text files into an array using VBA

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Better method for reading really large text files into an array using VBA

    Hi,

    I have a situation where i have a text input file. The file has approximately 1.3million rows in it. I know excel can't handle this many rows (and i dont want to read it in with excel) so i am reading in the file using vba and storing the result into an array.

    Below is the code i am using:

    Please Login or Register  to view this content.

    When i run this code it takes like A LONG TIME to just read in the text file.

    Does anyone have any suggestions on how to speed this up?

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Better method for reading really large text files into an array using VBA

    EDITED - This topic is already being discussed in http://www.excelforum.com/excel-prog...using-vba.html
    Last edited by cytop; 01-08-2015 at 06:04 PM.

  3. #3
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: Better method for reading really large text files into an array using VBA

    while it could be said that the other post should address this issue.......my original post at the link you posted was NOT for this specific issue...at all. but i will leave it up to you guys to decide where things go.

  4. #4
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: Better method for reading really large text files into an array using VBA

    the more i think about it .......the more i am convinced this post is "different" than the other one.......how can i prove this......simply........no one in the other post suggested "fixes" for large text 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. Reading through a large text file using VBA
    By vduhan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-26-2011, 01:21 PM
  2. Reading CSV text files
    By erock24 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-21-2010, 04:55 PM
  3. Reading text files into excel with multiple spaces as delimiter
    By XLBob in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-06-2009, 10:05 AM
  4. Easy reading of large text cells
    By michal2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-09-2008, 04:04 AM
  5. Reading Text Files Into Excel (.Read) and Searching Them
    By Mortonic in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-18-2007, 06: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