LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
hmm hmm is offline
external usenet poster
 
Posts: 175
Default Fastest reading of large text files

I have developed a macro that opens large text files (each has a list of
about 50,000 lines, almost all single numbers), reads them one at a time, and
places each one in a successive column.

The method I used is to open a text file, copy column A, paste it into the
next available column in the main sheet, close the text file, and repeat for
all text files in a folder (there could be up to 100 of them).

I am finding it could take about a minute to run this macro (for 35 files).

My question: will I gain speed by using the command "Open FileName For Input
As #FileNum"? (I would try it myself; since there's a learning curve for me,
I'm hoping to get somebody's input first.)

Thanks.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fastest way to select large range (e.g. B3:F1002)? [email protected] Excel Discussion (Misc queries) 7 August 31st 07 04:36 PM
Reading from Numerous Text Files into Excel Column ep Excel Programming 1 November 8th 06 06:17 PM
Fastest way to sort large 2-D arrays? RB Smissaert Excel Programming 21 January 10th 05 07:12 PM
reading data from text files in VBA Arne[_3_] Excel Programming 3 January 27th 04 10:07 AM
Need FASTEST way to get data from a large closed Excel File Dave B[_5_] Excel Programming 13 October 29th 03 09:26 PM


All times are GMT +1. The time now is 02:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"